Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblockmessage.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
34class IblockMessageTable extends Entity\DataManager
35{
41 public static function getTableName()
42 {
43 return 'b_iblock_messages';
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_MESSAGE_ENTITY_IBLOCK_ID_FIELD'),
58 ),
59 'MESSAGE_ID' => array(
60 'data_type' => 'string',
61 'primary' => true,
62 'validation' => array(__CLASS__, 'validateMessageId'),
63 'title' => Loc::getMessage('IBLOCK_MESSAGE_ENTITY_MESSAGE_ID_FIELD'),
64 ),
65 'MESSAGE_TEXT' => array(
66 'data_type' => 'string',
67 'validation' => array(__CLASS__, 'validateMessageText'),
68 'title' => Loc::getMessage('IBLOCK_MESSAGE_ENTITY_MESSAGE_TEXT_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 validateMessageId()
83 {
84 return array(
85 new Entity\Validator\Length(null, 50),
86 );
87 }
88
94 public static function validateMessageText()
95 {
96 return array(
97 new Entity\Validator\Length(null, 255),
98 );
99 }
100}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29