Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
buttontable.php
1<?php
2namespace Bitrix\B24connector;
3
6
7Loc::loadMessages(__FILE__);
8
37class ButtonTable extends Entity\DataManager
38{
44 public static function getTableName()
45 {
46 return 'b_b24connector_buttons';
47 }
48
54 public static function getMap()
55 {
56 return array(
57 'ID' => array(
58 'data_type' => 'integer',
59 'primary' => true,
60 'autocomplete' => true,
61 'title' => Loc::getMessage('B24C_BT_ENTITY_ID_FIELD'),
62 ),
63 'APP_ID' => array(
64 'data_type' => 'integer',
65 'required' => true,
66 'title' => Loc::getMessage('B24C_BT_ENTITY_APP_ID_FIELD'),
67 ),
68 'ADD_DATE' => array(
69 'data_type' => 'datetime',
70 'title' => Loc::getMessage('B24C_BT_ENTITY_ADD_DATE_FIELD'),
71 ),
72 'ADD_BY' => array(
73 'data_type' => 'integer',
74 'required' => true,
75 'title' => Loc::getMessage('B24C_BT_ENTITY_ADD_BY_FIELD'),
76 ),
77 'NAME' => array(
78 'data_type' => 'string',
79 'validation' => array(__CLASS__, 'validateName'),
80 'title' => Loc::getMessage('B24C_BT_ENTITY_NAME_FIELD'),
81 ),
82 'SCRIPT' => array(
83 'data_type' => 'text',
84 'title' => Loc::getMessage('B24C_BT_ENTITY_SCRIPT_FIELD'),
85 ),
86 );
87 }
93 public static function validateName()
94 {
95 return array(
96 new Entity\Validator\Length(null, 255),
97 );
98 }
99}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29