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