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