Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
role.php
1
<?php
2
3
namespace
Bitrix\Sender\Access\Role
;
4
5
use
Bitrix\Main\ArgumentTypeException
;
6
use
Bitrix\Main\Localization\Loc
;
7
use
Bitrix\Main\Entity
;
8
use
Bitrix\Main\SystemException
;
9
10
Loc::loadMessages
(__FILE__);
11
30
class
RoleTable
extends
Entity\DataManager
31
{
38
public
static
function
getTableName
()
39
{
40
return
'b_sender_role'
;
41
}
42
50
public
static
function
getMap
()
51
{
52
return
array(
53
'ID'
=>
new
Entity
\
IntegerField
(
'ID'
, array(
54
'primary'
=>
true
,
55
'autocomplete'
=>
true
,
56
)),
57
'DEAL_CATEGORY_ID'
=>
new
Entity
\
IntegerField
(
'DEAL_CATEGORY_ID'
, array(
58
'required'
=>
true
59
)),
60
'NAME'
=>
new
Entity
\
StringField
(
'NAME'
, array(
61
'required'
=>
true
,
62
'title'
=>
Loc::getMessage
(
'SENDER_INTERNALS_MODEL_ROLE_FIELD_NAME'
)
63
)),
64
'XML_ID'
=> array(
65
'data_type'
=>
'string'
,
66
'validation'
=> array(__CLASS__,
'validateXmlId'
),
67
)
68
);
69
}
70
77
public
static
function
validateXmlId
()
78
{
79
return
[
80
new
Entity\Validator\Length(
null
, 255),
81
];
82
}
83
}
Bitrix\Main\ArgumentTypeException
Definition
exception.php:114
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\Main\SystemException
Definition
exception.php:8
Bitrix\Sender\Access\Role\RoleTable
Definition
role.php:31
Bitrix\Sender\Access\Role\RoleTable\getMap
static getMap()
Definition
role.php:50
Bitrix\Sender\Access\Role\RoleTable\validateXmlId
static validateXmlId()
Definition
role.php:77
Bitrix\Sender\Access\Role\RoleTable\getTableName
static getTableName()
Definition
role.php:38
Bitrix\Sender\Access\Role
Definition
role.php:3
modules
sender
lib
access
role
role.php
Создано системой
1.10.0