Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
tradingplatform.php
1<?php
2namespace Bitrix\Sale;
3
6Loc::loadMessages(__FILE__);
7
36class TradingPlatformTable extends Entity\DataManager
37{
38 public static function getTableName()
39 {
40 return 'b_sale_tp';
41 }
42
43 public static function getMap()
44 {
45 return array(
46 'ID' => array(
47 'data_type' => 'integer',
48 'primary' => true,
49 'autocomplete' => true,
50 'title' => Loc::getMessage('TRADING_PLATFORM_ORDER_ENTITY_ID_FIELD'),
51 ),
52 'CODE' => array(
53 'required' => true,
54 'data_type' => 'string',
55 'validation' => array(__CLASS__, 'validateCode'),
56 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_CODE_FIELD'),
57 ),
58 'ACTIVE' => array(
59 'required' => true,
60 'data_type' => 'string',
61 'validation' => array(__CLASS__, 'validateActive'),
62 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_ACTIVE_FIELD'),
63 ),
64 'NAME' => array(
65 'data_type' => 'string',
66 'validation' => array(__CLASS__, 'validateName'),
67 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_NAME_FIELD'),
68 ),
69 'DESCRIPTION' => array(
70 'data_type' => 'string',
71 'validation' => array(__CLASS__, 'validateDescription'),
72 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_DESCRIPTION_FIELD'),
73 ),
74 'SETTINGS' => array(
75 'data_type' => 'text',
76 'serialized' => true,
77 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_SETTINGS_FIELD'),
78 ),
79 'CATALOG_SECTION_TAB_CLASS_NAME' => array(
80 'data_type' => 'string',
81 'validation' => array(__CLASS__, 'validateCatalogSectionTabClassName'),
82 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_CATALOG_SECTION_TAB_CLASS_NAME_FIELD'),
83 ),
84 'CLASS' => array(
85 'data_type' => 'string',
86 'validation' => array(__CLASS__, 'validateClass'),
87 'title' => Loc::getMessage('TRADING_PLATFORMS_ENTITY_CLASS_FIELD'),
88 ),
89 'XML_ID' => array(
90 'data_type' => 'string',
91 'title' => 'XML_ID',
92 )
93 );
94 }
95 public static function validateCode()
96 {
97 return array(
98 new Entity\Validator\Length(null, 20),
99 );
100 }
101 public static function validateActive()
102 {
103 return array(
104 new Entity\Validator\Length(null, 1),
105 );
106 }
107 public static function validateName()
108 {
109 return array(
110 new Entity\Validator\Length(null, 500),
111 );
112 }
113 public static function validateDescription()
114 {
115 return array(
116 new Entity\Validator\Length(null, 255),
117 );
118 }
119 public static function validateCatalogSectionTabClassName()
120 {
121 return array(
122 new Entity\Validator\Length(null, 255),
123 );
124 }
125 public static function validateClass()
126 {
127 return array(
128 new Entity\Validator\Length(null, 255),
129 );
130 }
131}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29