Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
designerrepo.php
1<?php
3
4use \Bitrix\Main\Localization\Loc;
5use \Bitrix\Main\Entity;
6
7Loc::loadMessages(__FILE__);
8
25class DesignerRepoTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_designer_repo';
34 }
35
40 public static function getMap()
41 {
42 return array(
43 'ID' => new Entity\IntegerField('ID', array(
44 'primary' => true,
45 'autocomplete' => true,
46 'title' => 'ID'
47 )),
48 'XML_ID' => new Entity\StringField('XML_ID', array(
49 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DB_XML_ID'),
50 'required' => true
51 )),
52 'TITLE' => new Entity\StringField('TITLE', array(
53 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DB_TITLE')
54 )),
55 'SORT' => new Entity\IntegerField('SORT', array(
56 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DB_SORT')
57 )),
58 'HTML' => new Entity\StringField('HTML', array(
59 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DB_HTML'),
60 'required' => true
61 )),
62 'MANIFEST' => (new \Bitrix\Main\ORM\Fields\ArrayField('MANIFEST', array(
63 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DB_NODE_MANIFEST')
64 )))->configureSerializationPhp(),
65 'CREATED_BY_ID' => new Entity\IntegerField('CREATED_BY_ID', array(
66 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CREATED_BY_ID'),
67 'required' => true
68 )),
69 'MODIFIED_BY_ID' => new Entity\IntegerField('MODIFIED_BY_ID', array(
70 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MODIFIED_BY_ID'),
71 'required' => true
72 )),
73 'DATE_CREATE' => new Entity\DatetimeField('DATE_CREATE', array(
74 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_CREATE'),
75 'required' => true
76 )),
77 'DATE_MODIFY' => new Entity\DatetimeField('DATE_MODIFY', array(
78 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_MODIFY'),
79 'required' => true
80 ))
81 );
82 }
83}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29