Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblocksite.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
34class IblockSiteTable extends Entity\DataManager
35{
41 public static function getTableName()
42 {
43 return 'b_iblock_site';
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_SITE_ENTITY_IBLOCK_ID_FIELD'),
58 ),
59 'SITE_ID' => array(
60 'data_type' => 'string',
61 'primary' => true,
62 'validation' => array(__CLASS__, 'validateSiteId'),
63 'title' => Loc::getMessage('IBLOCK_SITE_ENTITY_SITE_ID_FIELD'),
64 ),
65 'IBLOCK' => array(
66 'data_type' => 'Bitrix\Iblock\Iblock',
67 'reference' => array('=this.IBLOCK_ID' => 'ref.ID')
68 ),
69 'SITE' => array(
70 'data_type' => 'Bitrix\Main\Site',
71 'reference' => array('=this.SITE_ID' => 'ref.LID'),
72 ),
73 );
74 }
75
81 public static function validateSiteId()
82 {
83 return array(
84 new Entity\Validator\Length(null, 2),
85 );
86 }
87}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29