Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
buttontable.php
1
<?php
2
namespace
Bitrix\B24connector
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
7
Loc::loadMessages
(__FILE__);
8
37
class
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
}
Bitrix\B24connector\ButtonTable
Definition
buttontable.php:38
Bitrix\B24connector\ButtonTable\getMap
static getMap()
Definition
buttontable.php:54
Bitrix\B24connector\ButtonTable\validateName
static validateName()
Definition
buttontable.php:93
Bitrix\B24connector\ButtonTable\getTableName
static getTableName()
Definition
buttontable.php:44
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\B24connector
Definition
buttonsitetable.php:2
modules
b24connector
lib
buttontable.php
Создано системой
1.10.0