Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
chatbinding.php
1<?php
3
4use \Bitrix\Main\Entity;
5use \Bitrix\Main\Localization\Loc;
6
7Loc::loadMessages(__FILE__);
8
25class ChatBindingTable extends Entity\DataManager
26{
31 public static function getTableName()
32 {
33 return 'b_landing_chat_binding';
34 }
35
40 public static function getMap()
41 {
42 return array(
43 'ID' => new Entity\IntegerField('ID', array(
44 'title' => 'ID',
45 'primary' => true
46 )),
47 'INTERNAL_CHAT_ID' => new Entity\IntegerField('INTERNAL_CHAT_ID', array(
48 'title' => Loc::getMessage('LANDING_TABLE_FIELD_INTERNAL_CHAT_ID'),
49 'required' => true
50 )),
51 'ENTITY_ID' => new Entity\IntegerField('ENTITY_ID', array(
52 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ENTITY_ID'),
53 'required' => true
54 )),
55 'ENTITY_TYPE' => new Entity\StringField('ENTITY_TYPE', array(
56 'title' => Loc::getMessage('LANDING_TABLE_FIELD_ENTITY_TYPE'),
57 'required' => true
58 ))
59 );
60 }
61}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29