Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblockgroup.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
36class IblockGroupTable extends Entity\DataManager
37{
43 public static function getTableName()
44 {
45 return 'b_iblock_group';
46 }
47
53 public static function getMap()
54 {
55 return array(
56 'IBLOCK_ID' => array(
57 'data_type' => 'integer',
58 'primary' => true,
59 'title' => Loc::getMessage('IBLOCK_GROUP_ENTITY_IBLOCK_ID_FIELD'),
60 ),
61 'GROUP_ID' => array(
62 'data_type' => 'integer',
63 'primary' => true,
64 'title' => Loc::getMessage('IBLOCK_GROUP_ENTITY_GROUP_ID_FIELD'),
65 ),
66 'PERMISSION' => array(
67 'data_type' => 'string',
68 'required' => true,
69 'validation' => array(__CLASS__, 'validatePermission'),
70 'title' => Loc::getMessage('IBLOCK_GROUP_ENTITY_PERMISSION_FIELD'),
71 ),
72 'GROUP' => array(
73 'data_type' => 'Bitrix\Main\Group',
74 'reference' => array('=this.GROUP_ID' => 'ref.ID'),
75 ),
76 'IBLOCK' => array(
77 'data_type' => 'Bitrix\Iblock\Iblock',
78 'reference' => array('=this.IBLOCK_ID' => 'ref.ID'),
79 ),
80 );
81 }
82
88 public static function validatePermission()
89 {
90 return array(
91 new Entity\Validator\Length(null, 1),
92 );
93 }
94}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29