Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
role.php
1
<?php
2
3
namespace
Bitrix\Sender\Internals\Model\Role
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\Entity
;
7
8
Loc::loadMessages
(__FILE__);
9
15
class
RoleTable
extends
Entity\DataManager
16
{
23
public
static
function
getTableName
()
24
{
25
return
'b_sender_role'
;
26
}
27
34
public
static
function
getMap
()
35
{
36
return
array(
37
'ID'
=>
new
Entity
\
IntegerField
(
'ID'
, array(
38
'primary'
=>
true
,
39
'autocomplete'
=>
true
,
40
)),
41
'NAME'
=>
new
Entity
\
StringField
(
'NAME'
, array(
42
'required'
=>
true
,
43
'title'
=>
Loc::getMessage
(
'SENDER_INTERNALS_MODEL_ROLE_FIELD_NAME'
)
44
)),
45
'XML_ID'
=> array(
46
'data_type'
=>
'string'
,
47
'validation'
=> array(__CLASS__,
'validateXmlId'
),
48
),
49
);
50
}
51
57
public
static
function
validateXmlId
()
58
{
59
return
[
60
new
Entity\Validator\Length(
null
, 255),
61
];
62
}
63
}
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\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sender\Internals\Model\Role\RoleTable
Definition
role.php:16
Bitrix\Sender\Internals\Model\Role\RoleTable\getMap
static getMap()
Definition
role.php:34
Bitrix\Sender\Internals\Model\Role\RoleTable\validateXmlId
static validateXmlId()
Definition
role.php:57
Bitrix\Sender\Internals\Model\Role\RoleTable\getTableName
static getTableName()
Definition
role.php:23
Bitrix\Sender\Internals\Model\Role
Definition
access.php:3
modules
sender
lib
internals
model
role
role.php
Создано системой
1.10.0