Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblockfield.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
IblockFieldTable
extends
Entity\DataManager
36
{
42
public
static
function
getTableName
()
43
{
44
return
'b_iblock_fields'
;
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_FIELD_ENTITY_IBLOCK_ID_FIELD'
),
59
),
60
'FIELD_ID'
=> array(
61
'data_type'
=>
'string'
,
62
'primary'
=>
true
,
63
'validation'
=> array(__CLASS__,
'validateFieldId'
),
64
'title'
=>
Loc::getMessage
(
'IBLOCK_FIELD_ENTITY_FIELD_ID_FIELD'
),
65
),
66
'IS_REQUIRED'
=> array(
67
'data_type'
=>
'boolean'
,
68
'values'
=> array(
'N'
,
'Y'
),
69
'title'
=>
Loc::getMessage
(
'IBLOCK_FIELD_ENTITY_IS_REQUIRED_FIELD'
),
70
),
71
'DEFAULT_VALUE'
=> array(
72
'data_type'
=>
'string'
,
73
'title'
=>
Loc::getMessage
(
'IBLOCK_FIELD_ENTITY_DEFAULT_VALUE_FIELD'
),
74
),
75
'IBLOCK'
=> array(
76
'data_type'
=>
'Bitrix\Iblock\Iblock'
,
77
'reference'
=> array(
'=this.IBLOCK_ID'
=>
'ref.ID'
)
78
),
79
);
80
}
81
87
public
static
function
validateFieldId
()
88
{
89
return
array(
90
new
Entity
\Validator\Length(
null
, 50),
91
);
92
}
93
}
Bitrix\Iblock\IblockFieldTable
Definition
iblockfield.php:36
Bitrix\Iblock\IblockFieldTable\validateFieldId
static validateFieldId()
Definition
iblockfield.php:87
Bitrix\Iblock\IblockFieldTable\getMap
static getMap()
Definition
iblockfield.php:52
Bitrix\Iblock\IblockFieldTable\getTableName
static getTableName()
Definition
iblockfield.php:42
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
iblockfield.php
Создано системой
1.10.0