Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblockgroup.php
1
<?php
2
namespace
Bitrix\Iblock
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
36
class
IblockGroupTable
extends
Entity\DataManager
37
{
43
public
static
function
getTableName
()
44
{
45
return
'b_iblock_group'
;
46
}
47
53
public
static
function
getMap
()
54
{
55
return
array(
56
'IBLOCK_ID'
=> array(
57
'data_type'
=>
'integer'
,
58
'primary'
=>
true
,
59
'title'
=>
Loc::getMessage
(
'IBLOCK_GROUP_ENTITY_IBLOCK_ID_FIELD'
),
60
),
61
'GROUP_ID'
=> array(
62
'data_type'
=>
'integer'
,
63
'primary'
=>
true
,
64
'title'
=>
Loc::getMessage
(
'IBLOCK_GROUP_ENTITY_GROUP_ID_FIELD'
),
65
),
66
'PERMISSION'
=> array(
67
'data_type'
=>
'string'
,
68
'required'
=>
true
,
69
'validation'
=> array(__CLASS__,
'validatePermission'
),
70
'title'
=>
Loc::getMessage
(
'IBLOCK_GROUP_ENTITY_PERMISSION_FIELD'
),
71
),
72
'GROUP'
=> array(
73
'data_type'
=>
'Bitrix\Main\Group'
,
74
'reference'
=> array(
'=this.GROUP_ID'
=>
'ref.ID'
),
75
),
76
'IBLOCK'
=> array(
77
'data_type'
=>
'Bitrix\Iblock\Iblock'
,
78
'reference'
=> array(
'=this.IBLOCK_ID'
=>
'ref.ID'
),
79
),
80
);
81
}
82
88
public
static
function
validatePermission
()
89
{
90
return
array(
91
new
Entity
\Validator\Length(
null
, 1),
92
);
93
}
94
}
Bitrix\Iblock\IblockGroupTable
Definition
iblockgroup.php:37
Bitrix\Iblock\IblockGroupTable\getMap
static getMap()
Definition
iblockgroup.php:53
Bitrix\Iblock\IblockGroupTable\getTableName
static getTableName()
Definition
iblockgroup.php:43
Bitrix\Iblock\IblockGroupTable\validatePermission
static validatePermission()
Definition
iblockgroup.php:88
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\Iblock
modules
iblock
lib
iblockgroup.php
Создано системой
1.10.0