Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
groupaccess.php
1
<?php
2
namespace
Bitrix\Catalog
;
3
4
use
Bitrix\Main\ORM
,
5
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
36
class
GroupAccessTable
extends
ORM\Data\DataManager
37
{
38
const
ACCESS_BUY
=
'Y'
;
39
const
ACCESS_VIEW
=
'N'
;
45
public
static
function
getTableName
()
46
{
47
return
'b_catalog_group2group'
;
48
}
49
55
public
static
function
getMap
()
56
{
57
return
array(
58
'ID'
=>
new
ORM\
Fields
\
IntegerField
(
'ID'
, array(
59
'primary'
=>
true
,
60
'autocomplete'
=>
true
,
61
'title'
=>
Loc::getMessage
(
'GROUP_ACCESS_ENTITY_ID_FIELD'
)
62
)),
63
'CATALOG_GROUP_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'CATALOG_GROUP_ID'
, array(
64
'required'
=>
true
,
65
'title'
=>
Loc::getMessage
(
'GROUP_ACCESS_ENTITY_CATALOG_GROUP_ID_FIELD'
)
66
)),
67
'GROUP_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'GROUP_ID'
, array(
68
'required'
=>
true
,
69
'title'
=>
Loc::getMessage
(
'GROUP_ACCESS_ENTITY_GROUP_ID_FIELD'
)
70
)),
71
'ACCESS'
=>
new
ORM\
Fields
\
BooleanField
(
'ACCESS'
, array(
72
'column_name'
=>
'BUY'
,
73
'values'
=> array(self::ACCESS_VIEW, self::ACCESS_BUY),
74
'title'
=>
Loc::getMessage
(
'GROUP_ACCESS_ENTITY_ACCESS_FIELD'
)
75
)),
76
'CATALOG_GROUP'
=>
new
ORM\
Fields
\Relations\
Reference
(
77
'CATALOG_GROUP'
,
78
'\Bitrix\Catalog\Group'
,
79
array(
'=this.CATALOG_GROUP_ID'
=>
'ref.ID'
)
80
)
81
);
82
}
83
}
Bitrix\Catalog\GroupAccessTable
Definition
groupaccess.php:37
Bitrix\Catalog\GroupAccessTable\getMap
static getMap()
Definition
groupaccess.php:55
Bitrix\Catalog\GroupAccessTable\ACCESS_BUY
const ACCESS_BUY
Definition
groupaccess.php:38
Bitrix\Catalog\GroupAccessTable\getTableName
static getTableName()
Definition
groupaccess.php:45
Bitrix\Catalog\GroupAccessTable\ACCESS_VIEW
const ACCESS_VIEW
Definition
groupaccess.php:39
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\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Sale\Internals\Fields
Definition
fields.php:6
Bitrix\Catalog
Bitrix\Main\ORM
modules
catalog
lib
groupaccess.php
Создано системой
1.10.0