Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
results.php
1
<?php
2
3
namespace
Bitrix\Sale\TradingPlatform\Ebay\Feed
;
4
5
use
Bitrix\Main\Entity
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
Loc::loadMessages
(__FILE__);
9
40
class
ResultsTable
extends
Entity\DataManager
41
{
42
public
static
function
getFilePath
()
43
{
44
return
__FILE__;
45
}
46
47
public
static
function
getTableName
()
48
{
49
return
'b_sale_tp_ebay_fr'
;
50
}
51
52
public
static
function
getMap
()
53
{
54
return
array(
55
'ID'
=> array(
56
'data_type'
=>
'integer'
,
57
'primary'
=>
true
,
58
'autocomplete'
=>
true
,
59
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_ID_FIELD'
),
60
),
61
'FILENAME'
=> array(
62
'data_type'
=>
'string'
,
63
'required'
=>
true
,
64
'validation'
=> array(__CLASS__,
'validateFilename'
),
65
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_FILENAME_FIELD'
),
66
),
67
'FEED_TYPE'
=> array(
68
'data_type'
=>
'string'
,
69
'required'
=>
true
,
70
'validation'
=> array(__CLASS__,
'validateFeedType'
),
71
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_FEED_TYPE_FIELD'
),
72
),
73
'UPLOAD_TIME'
=> array(
74
'data_type'
=>
'datetime'
,
75
'required'
=>
true
,
76
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_UPLOAD_TIME_FIELD'
),
77
),
78
'PROCESSING_REQUEST_ID'
=> array(
79
'data_type'
=>
'string'
,
80
'validation'
=> array(__CLASS__,
'validateProcessingRequestId'
),
81
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_PROCESSING_REQUEST_ID_FIELD'
),
82
),
83
'PROCESSING_RESULT'
=> array(
84
'data_type'
=>
'string'
,
85
'validation'
=> array(__CLASS__,
'validateProcessingResult'
),
86
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_PROCESSING_RESULT_FIELD'
),
87
),
88
'RESULTS'
=> array(
89
'data_type'
=>
'text'
,
90
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_EBAY_FEED_RESULTS_ENTITY_RESULTS_FIELD'
),
91
)
92
);
93
}
94
public
static
function
validateProcessingIsSuccess
()
95
{
96
return
array(
97
new
Entity
\Validator\Length(
null
, 1),
98
);
99
}
100
public
static
function
validateFilename
()
101
{
102
return
array(
103
new
Entity
\Validator\Length(
null
, 255),
104
);
105
}
106
public
static
function
validateFeedType
()
107
{
108
return
array(
109
new
Entity
\Validator\Length(
null
, 50),
110
);
111
}
112
public
static
function
validateProcessingRequestId
()
113
{
114
return
array(
115
new
Entity
\Validator\Length(
null
, 50),
116
);
117
}
118
public
static
function
validateProcessingResult
()
119
{
120
return
array(
121
new
Entity
\Validator\Length(
null
, 100),
122
);
123
}
124
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable
Definition
results.php:41
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\getMap
static getMap()
Definition
results.php:52
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\validateFilename
static validateFilename()
Definition
results.php:100
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\validateProcessingIsSuccess
static validateProcessingIsSuccess()
Definition
results.php:94
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\getFilePath
static getFilePath()
Definition
results.php:42
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\validateFeedType
static validateFeedType()
Definition
results.php:106
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\validateProcessingResult
static validateProcessingResult()
Definition
results.php:118
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\validateProcessingRequestId
static validateProcessingRequestId()
Definition
results.php:112
Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable\getTableName
static getTableName()
Definition
results.php:47
Bitrix\Sale\TradingPlatform\Ebay\Feed
modules
sale
lib
tradingplatform
ebay
feed
results.php
Создано системой
1.10.0