Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblockmessage.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
IblockMessageTable
extends
Entity\DataManager
35
{
41
public
static
function
getTableName
()
42
{
43
return
'b_iblock_messages'
;
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_MESSAGE_ENTITY_IBLOCK_ID_FIELD'
),
58
),
59
'MESSAGE_ID'
=> array(
60
'data_type'
=>
'string'
,
61
'primary'
=>
true
,
62
'validation'
=> array(__CLASS__,
'validateMessageId'
),
63
'title'
=>
Loc::getMessage
(
'IBLOCK_MESSAGE_ENTITY_MESSAGE_ID_FIELD'
),
64
),
65
'MESSAGE_TEXT'
=> array(
66
'data_type'
=>
'string'
,
67
'validation'
=> array(__CLASS__,
'validateMessageText'
),
68
'title'
=>
Loc::getMessage
(
'IBLOCK_MESSAGE_ENTITY_MESSAGE_TEXT_FIELD'
),
69
),
70
'IBLOCK'
=> array(
71
'data_type'
=>
'Bitrix\Iblock\Iblock'
,
72
'reference'
=> array(
'=this.IBLOCK_ID'
=>
'ref.ID'
)
73
),
74
);
75
}
76
82
public
static
function
validateMessageId
()
83
{
84
return
array(
85
new
Entity
\Validator\Length(
null
, 50),
86
);
87
}
88
94
public
static
function
validateMessageText
()
95
{
96
return
array(
97
new
Entity
\Validator\Length(
null
, 255),
98
);
99
}
100
}
Bitrix\Iblock\IblockMessageTable
Definition
iblockmessage.php:35
Bitrix\Iblock\IblockMessageTable\getMap
static getMap()
Definition
iblockmessage.php:51
Bitrix\Iblock\IblockMessageTable\validateMessageText
static validateMessageText()
Definition
iblockmessage.php:94
Bitrix\Iblock\IblockMessageTable\validateMessageId
static validateMessageId()
Definition
iblockmessage.php:82
Bitrix\Iblock\IblockMessageTable\getTableName
static getTableName()
Definition
iblockmessage.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
iblockmessage.php
Создано системой
1.10.0