Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblocksite.php
1
<?php
2
namespace
Bitrix\Iblock
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
34
class
IblockSiteTable
extends
Entity\DataManager
35
{
41
public
static
function
getTableName
()
42
{
43
return
'b_iblock_site'
;
44
}
45
51
public
static
function
getMap
()
52
{
53
return
array(
54
'IBLOCK_ID'
=> array(
55
'data_type'
=>
'integer'
,
56
'primary'
=>
true
,
57
'title'
=>
Loc::getMessage
(
'IBLOCK_SITE_ENTITY_IBLOCK_ID_FIELD'
),
58
),
59
'SITE_ID'
=> array(
60
'data_type'
=>
'string'
,
61
'primary'
=>
true
,
62
'validation'
=> array(__CLASS__,
'validateSiteId'
),
63
'title'
=>
Loc::getMessage
(
'IBLOCK_SITE_ENTITY_SITE_ID_FIELD'
),
64
),
65
'IBLOCK'
=> array(
66
'data_type'
=>
'Bitrix\Iblock\Iblock'
,
67
'reference'
=> array(
'=this.IBLOCK_ID'
=>
'ref.ID'
)
68
),
69
'SITE'
=> array(
70
'data_type'
=>
'Bitrix\Main\Site'
,
71
'reference'
=> array(
'=this.SITE_ID'
=>
'ref.LID'
),
72
),
73
);
74
}
75
81
public
static
function
validateSiteId
()
82
{
83
return
array(
84
new
Entity
\Validator\Length(
null
, 2),
85
);
86
}
87
}
Bitrix\Iblock\IblockSiteTable
Definition
iblocksite.php:35
Bitrix\Iblock\IblockSiteTable\getMap
static getMap()
Definition
iblocksite.php:51
Bitrix\Iblock\IblockSiteTable\validateSiteId
static validateSiteId()
Definition
iblocksite.php:81
Bitrix\Iblock\IblockSiteTable\getTableName
static getTableName()
Definition
iblocksite.php:41
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
iblocksite.php
Создано системой
1.10.0