1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
ArgumentTypeException.php:9
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\SystemException
Определения
SystemException.php:9
Bitrix\Sender\Access\Role\RoleTable
Определения
role.php:31
Bitrix\Sender\Access\Role\RoleTable\getMap
static getMap()
Определения
role.php:50
Bitrix\Sender\Access\Role\RoleTable\validateXmlId
static validateXmlId()
Определения
role.php:77
Bitrix\Sender\Access\Role\RoleTable\getTableName
static getTableName()
Определения
role.php:38
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Entity
Определения
ufield.php:9
Bitrix\Sender\Access\Role
Определения
role.php:3
bitrix
modules
sender
lib
access
role
role.php
Создано системой
1.14.0