Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
demos.php
1<?php
3
4use \Bitrix\Main\Localization\Loc;
5use \Bitrix\Main\Entity;
6
7Loc::loadMessages(__FILE__);
8
25class DemosTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_demo';
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_XML_ID'),
50 'required' => true
51 )),
52 'APP_CODE' => new Entity\StringField('APP_CODE', array(
53 'title' => Loc::getMessage('LANDING_TABLE_FIELD_APP_CODE')
54 )),
55 'ACTIVE' => new Entity\StringField('ACTIVE', array(
56 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ACTIVE'),
57 'default_value' => 'Y'
58 )),
59 'TYPE' => new Entity\StringField('TYPE', array(
60 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DEMOS_TYPE')
61 )),
62 'TPL_TYPE' => new Entity\StringField('TPL_TYPE', array(
63 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DEMOS_TPL_TYPE')
64 )),
65 'SHOW_IN_LIST' => new Entity\StringField('SHOW_IN_LIST', array(
66 'title' => Loc::getMessage('LANDING_TABLE_FIELD_SHOW_IN_LIST'),
67 'default_value' => 'N'
68 )),
69 'TITLE' => new Entity\StringField('TITLE', array(
70 'title' => Loc::getMessage('LANDING_TABLE_FIELD_TITLE'),
71 'required' => true
72 )),
73 'DESCRIPTION' => new Entity\StringField('DESCRIPTION', array(
74 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DESCRIPTION')
75 )),
76 'PREVIEW_URL' => new Entity\StringField('PREVIEW_URL', array(
77 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PREVIEW_URL')
78 )),
79 'PREVIEW' => new Entity\StringField('PREVIEW', array(
80 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PREVIEW')
81 )),
82 'PREVIEW2X' => new Entity\StringField('PREVIEW2X', array(
83 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PREVIEWX2')
84 )),
85 'PREVIEW3X' => new Entity\StringField('PREVIEW3X', array(
86 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PREVIEWX3')
87 )),
88 'MANIFEST' => new Entity\StringField('MANIFEST', array(
89 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MANIFEST')
90 )),
91 'LANG' => new Entity\StringField('LANG', array(
92 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MANIFEST')
93 )),
94 'SITE_TEMPLATE_ID' => new Entity\StringField('SITE_TEMPLATE_ID', array(
95 'title' => Loc::getMessage('LANDING_TABLE_FIELD_SITE_TEMPLATE_ID')
96 )),
97 'CREATED_BY_ID' => new Entity\IntegerField('CREATED_BY_ID', array(
98 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CREATED_BY_ID'),
99 'required' => true
100 )),
101 'MODIFIED_BY_ID' => new Entity\IntegerField('MODIFIED_BY_ID', array(
102 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MODIFIED_BY_ID'),
103 'required' => true
104 )),
105 'DATE_CREATE' => new Entity\DatetimeField('DATE_CREATE', array(
106 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_CREATE'),
107 'required' => true
108 )),
109 'DATE_MODIFY' => new Entity\DatetimeField('DATE_MODIFY', array(
110 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_MODIFY'),
111 'required' => true
112 ))
113 );
114 }
115}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29