Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cookiesagreement.php
1<?php
3
4use \Bitrix\Main\Localization\Loc;
5use \Bitrix\Main\Entity;
6
7Loc::loadMessages(__FILE__);
8
25class CookiesAgreementTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_cookies_agreement';
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 'ACTIVE' => new Entity\StringField('ACTIVE', array(
49 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ACTIVE'),
50 'default_value' => 'Y'
51 )),
52 'SITE_ID' => new Entity\IntegerField('SITE_ID', array(
53 'title' => Loc::getMessage('LANDING_TABLE_FIELD_SITE_ID'),
54 'required' => true
55 )),
56 'CODE' => new Entity\StringField('CODE', array(
57 'title' => Loc::getMessage('LANDING_TABLE_FIELD_COOKIE_CODE'),
58 'required' => true
59 )),
60 'TITLE' => new Entity\StringField('TITLE', array(
61 'title' => Loc::getMessage('LANDING_TABLE_FIELD_COOKIE_TITLE')
62 )),
63 'CONTENT' => new Entity\StringField('CONTENT', array(
64 'title' => Loc::getMessage('LANDING_TABLE_FIELD_COOKIE_CONTENT'),
65 'required' => true
66 )),
67 'CREATED_BY_ID' => new Entity\IntegerField('CREATED_BY_ID', array(
68 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CREATED_BY_ID'),
69 'required' => true
70 )),
71 'MODIFIED_BY_ID' => new Entity\IntegerField('MODIFIED_BY_ID', array(
72 'title' => Loc::getMessage('LANDING_TABLE_FIELD_MODIFIED_BY_ID'),
73 'required' => true
74 )),
75 'DATE_CREATE' => new Entity\DatetimeField('DATE_CREATE', array(
76 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_CREATE'),
77 'required' => true
78 )),
79 'DATE_MODIFY' => new Entity\DatetimeField('DATE_MODIFY', array(
80 'title' => Loc::getMessage('LANDING_TABLE_FIELD_DATE_MODIFY'),
81 'required' => true
82 ))
83 );
84 }
85}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29