Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblockfield.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
35class 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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29