Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sequence.php
1
<?php
2
namespace
Bitrix\Iblock
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
35
class
SequenceTable
extends
Entity\DataManager
36
{
42
public
static
function
getTableName
()
43
{
44
return
'b_iblock_sequence'
;
45
}
46
52
public
static
function
getMap
()
53
{
54
return
array(
55
'IBLOCK_ID'
=> array(
56
'data_type'
=>
'integer'
,
57
'primary'
=>
true
,
58
'title'
=>
Loc::getMessage
(
'IBLOCK_SEQUENCE_ENTITY_IBLOCK_ID_FIELD'
),
59
),
60
'CODE'
=> array(
61
'data_type'
=>
'string'
,
62
'primary'
=>
true
,
63
'validation'
=> array(__CLASS__,
'validateCode'
),
64
'title'
=>
Loc::getMessage
(
'IBLOCK_SEQUENCE_ENTITY_CODE_FIELD'
),
65
),
66
'SEQ_VALUE'
=> array(
67
'data_type'
=>
'integer'
,
68
'title'
=>
Loc::getMessage
(
'IBLOCK_SEQUENCE_ENTITY_SEQ_VALUE_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
validateCode
()
83
{
84
return
array(
85
new
Entity
\Validator\Length(
null
, 50),
86
);
87
}
88
}
Bitrix\Iblock\SequenceTable
Definition
sequence.php:36
Bitrix\Iblock\SequenceTable\getMap
static getMap()
Definition
sequence.php:52
Bitrix\Iblock\SequenceTable\getTableName
static getTableName()
Definition
sequence.php:42
Bitrix\Iblock\SequenceTable\validateCode
static validateCode()
Definition
sequence.php:82
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
sequence.php
Создано системой
1.10.0