Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
repo.php
1<?php
3
4use \Bitrix\Main\Localization\Loc;
5use \Bitrix\Main\Entity;
6
7Loc::loadMessages(__FILE__);
8
25class RepoTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_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_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 )),
58 'NAME' => new Entity\StringField('NAME', array(
59 'title' => Loc::getMessage('LANDING_TABLE_FIELD_NAME'),
60 'required' => true
61 )),
62 'DESCRIPTION' => new Entity\StringField('DESCRIPTION', array(
63 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DESCRIPTION')
64 )),
65 'SECTIONS' => new Entity\StringField('SECTIONS', array(
66 'title' => Loc::getMessage('LANDING_TABLE_FIELD_SECTIONS')
67 )),
68 'SITE_TEMPLATE_ID' => new Entity\StringField('SITE_TEMPLATE_ID', array(
69 'title' => Loc::getMessage('LANDING_TABLE_FIELD_SITE_TEMPLATE_ID')
70 )),
71 'PREVIEW' => new Entity\StringField('PREVIEW', array(
72 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PREVIEW')
73 )),
74 'MANIFEST' => new Entity\StringField('MANIFEST', array(
75 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MANIFEST')
76 )),
77 'CONTENT' => new Entity\StringField('CONTENT', array(
78 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CONTENT'),
79 'required' => true
80 )),
81 'CREATED_BY_ID' => new Entity\IntegerField('CREATED_BY_ID', array(
82 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CREATED_BY_ID'),
83 'required' => true
84 )),
85 'MODIFIED_BY_ID' => new Entity\IntegerField('MODIFIED_BY_ID', array(
86 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MODIFIED_BY_ID'),
87 'required' => true
88 )),
89 'DATE_CREATE' => new Entity\DatetimeField('DATE_CREATE', array(
90 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_CREATE'),
91 'required' => true
92 )),
93 'DATE_MODIFY' => new Entity\DatetimeField('DATE_MODIFY', array(
94 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_MODIFY'),
95 'required' => true
96 ))
97 );
98 }
99}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29