Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
mapentity.php
1<?php
3
6Loc::loadMessages(__FILE__);
7
34class MapEntityTable extends Entity\DataManager
35{
36 public static function getFilePath()
37 {
38 return __FILE__;
39 }
40
41 public static function getTableName()
42 {
43 return 'b_sale_tp_map_entity';
44 }
45
46 public static function getMap()
47 {
48 return array(
49 'ID' => array(
50 'data_type' => 'integer',
51 'primary' => true,
52 'autocomplete' => true,
53 'title' => Loc::getMessage('TRADING_PLATFORM_MAP_ENTITY_ENTITY_ID_FIELD'),
54 ),
55 'TRADING_PLATFORM_ID' => array(
56 'data_type' => 'integer',
57 'required' => true,
58 'title' => Loc::getMessage('TRADING_PLATFORM_MAP_ENTITY_ENTITY_TRADING_PLATFORM_ID_FIELD'),
59 ),
60 'CODE' => array(
61 'data_type' => 'string',
62 'required' => true,
63 'validation' => array(__CLASS__, 'validateCode'),
64 'title' => Loc::getMessage('TRADING_PLATFORM_MAP_ENTITY_ENTITY_CODE_FIELD'),
65 ),
66 );
67 }
68
69 public static function validateCode()
70 {
71 return array(
72 new Entity\Validator\Length(null, 255),
73 );
74 }
75}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29