Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sequence.php
1<?php
2namespace Bitrix\Iblock;
3
6Loc::loadMessages(__FILE__);
7
35class SequenceTable extends Entity\DataManager
36{
42 public static function getTableName()
43 {
44 return 'b_iblock_sequence';
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_SEQUENCE_ENTITY_IBLOCK_ID_FIELD'),
59 ),
60 'CODE' => array(
61 'data_type' => 'string',
62 'primary' => true,
63 'validation' => array(__CLASS__, 'validateCode'),
64 'title' => Loc::getMessage('IBLOCK_SEQUENCE_ENTITY_CODE_FIELD'),
65 ),
66 'SEQ_VALUE' => array(
67 'data_type' => 'integer',
68 'title' => Loc::getMessage('IBLOCK_SEQUENCE_ENTITY_SEQ_VALUE_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 validateCode()
83 {
84 return array(
85 new Entity\Validator\Length(null, 50),
86 );
87 }
88}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29