Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
hookdata.php
1<?php
3
4use \Bitrix\Main\Localization\Loc;
5use \Bitrix\Main\Entity;
6
7Loc::loadMessages(__FILE__);
8
25class HookDataTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_hook_data';
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 'ENTITY_ID' => new Entity\IntegerField('ENTITY_ID', array(
49 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ENTITY_ID'),
50 'required' => true
51 )),
52 'ENTITY_TYPE' => new Entity\StringField('ENTITY_TYPE', array(
53 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ENTITY_TYPE'),
54 'required' => true
55 )),
56 'HOOK' => new Entity\StringField('HOOK', array(
57 'title' => Loc::getMessage('LANDING_TABLE_FIELD_HOOK'),
58 'required' => true
59 )),
60 'CODE' => new Entity\StringField('CODE', array(
61 'title' => Loc::getMessage('LANDING_TABLE_FIELD_CODE'),
62 'required' => true
63 )),
64 'VALUE' => new Entity\StringField('VALUE', array(
65 'title' => Loc::getMessage('LANDING_TABLE_FIELD_VALUE'),
66 'save_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getSaveModificator'),
67 'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator')
68 )),
69 'PUBLIC' => new Entity\StringField('PUBLIC', array(
70 'title' => Loc::getMessage('LANDING_TABLE_FIELD_PUBLIC'),
71 'default_value' => 'N'
72 ))
73 );
74 }
75}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29