Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblockrss.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
IblockRssTable
extends
Entity\DataManager
37
{
43
public
static
function
getTableName
()
44
{
45
return
'b_iblock_rss'
;
46
}
47
53
public
static
function
getMap
()
54
{
55
return
array(
56
'ID'
=> array(
57
'data_type'
=>
'integer'
,
58
'primary'
=>
true
,
59
'autocomplete'
=>
true
,
60
'title'
=>
Loc::getMessage
(
'IBLOCK_RSS_ENTITY_ID_FIELD'
),
61
),
62
'IBLOCK_ID'
=> array(
63
'data_type'
=>
'integer'
,
64
'required'
=>
true
,
65
'title'
=>
Loc::getMessage
(
'IBLOCK_RSS_ENTITY_IBLOCK_ID_FIELD'
),
66
),
67
'NODE'
=> array(
68
'data_type'
=>
'string'
,
69
'required'
=>
true
,
70
'validation'
=> array(__CLASS__,
'validateNode'
),
71
'title'
=>
Loc::getMessage
(
'IBLOCK_RSS_ENTITY_NODE_FIELD'
),
72
),
73
'NODE_VALUE'
=> array(
74
'data_type'
=>
'string'
,
75
'validation'
=> array(__CLASS__,
'validateNodeValue'
),
76
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_NODE_VALUE_FIELD'
),
77
),
78
'IBLOCK'
=> array(
79
'data_type'
=>
'Bitrix\Iblock\Iblock'
,
80
'reference'
=> array(
'=this.IBLOCK_ID'
=>
'ref.ID'
),
81
),
82
);
83
}
84
90
public
static
function
validateNode
()
91
{
92
return
array(
93
new
Entity
\Validator\Length(
null
, 50),
94
);
95
}
96
102
public
static
function
validateNodeValue
()
103
{
104
return
array(
105
new
Entity
\Validator\Length(
null
, 250),
106
);
107
}
108
}
Bitrix\Iblock\IblockRssTable
Definition
iblockrss.php:37
Bitrix\Iblock\IblockRssTable\getMap
static getMap()
Definition
iblockrss.php:53
Bitrix\Iblock\IblockRssTable\validateNodeValue
static validateNodeValue()
Definition
iblockrss.php:102
Bitrix\Iblock\IblockRssTable\validateNode
static validateNode()
Definition
iblockrss.php:90
Bitrix\Iblock\IblockRssTable\getTableName
static getTableName()
Definition
iblockrss.php:43
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
iblockrss.php
Создано системой
1.10.0