Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
blocklastused.php
1<?php
3
4use \Bitrix\Main\Entity;
5use \Bitrix\Main\Localization\Loc;
6
7Loc::loadMessages(__FILE__);
8
9class BlockLastUsedTable extends Entity\DataManager
10{
15 public static function getTableName(): string
16 {
17 return 'b_landing_block_last_used';
18 }
19
24 public static function getMap(): array
25 {
26 return array(
27 'ID' => new Entity\IntegerField('ID', array(
28 'title' => 'ID',
29 'primary' => true,
30 'autocomplete' => true,
31 )),
32 'USER_ID' => new Entity\IntegerField('USER_ID', array(
33 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LU_USER_ID'),
34 'required' => true
35 )),
36 'CODE' => new Entity\StringField('CODE', array(
37 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LU_CODE'),
38 'required' => true
39 )),
40 'DATE_CREATE' => new Entity\DatetimeField('DATE_CREATE', array(
41 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LU_DATE_CREATE')
42 ))
43 );
44 }
45}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29