Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblockrss.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
36class IblockRssTable extends Entity\DataManager
37{
43 public static function getTableName()
44 {
45 return 'b_iblock_rss';
46 }
47
53 public static function getMap()
54 {
55 return array(
56 'ID' => array(
57 'data_type' => 'integer',
58 'primary' => true,
59 'autocomplete' => true,
60 'title' => Loc::getMessage('IBLOCK_RSS_ENTITY_ID_FIELD'),
61 ),
62 'IBLOCK_ID' => array(
63 'data_type' => 'integer',
64 'required' => true,
65 'title' => Loc::getMessage('IBLOCK_RSS_ENTITY_IBLOCK_ID_FIELD'),
66 ),
67 'NODE' => array(
68 'data_type' => 'string',
69 'required' => true,
70 'validation' => array(__CLASS__, 'validateNode'),
71 'title' => Loc::getMessage('IBLOCK_RSS_ENTITY_NODE_FIELD'),
72 ),
73 'NODE_VALUE' => array(
74 'data_type' => 'string',
75 'validation' => array(__CLASS__, 'validateNodeValue'),
76 'title' => Loc::getMessage('IBLOCK_ENTITY_NODE_VALUE_FIELD'),
77 ),
78 'IBLOCK' => array(
79 'data_type' => 'Bitrix\Iblock\Iblock',
80 'reference' => array('=this.IBLOCK_ID' => 'ref.ID'),
81 ),
82 );
83 }
84
90 public static function validateNode()
91 {
92 return array(
93 new Entity\Validator\Length(null, 50),
94 );
95 }
96
102 public static function validateNodeValue()
103 {
104 return array(
105 new Entity\Validator\Length(null, 250),
106 );
107 }
108}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29