Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
results.php
1<?php
2
4
7
8Loc::loadMessages(__FILE__);
9
40class 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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29