Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
role.php
1<?php
2
4
7
8Loc::loadMessages(__FILE__);
9
15class RoleTable extends Entity\DataManager
16{
23 public static function getTableName()
24 {
25 return 'b_sender_role';
26 }
27
34 public static function getMap()
35 {
36 return array(
37 'ID' => new Entity\IntegerField('ID', array(
38 'primary' => true,
39 'autocomplete' => true,
40 )),
41 'NAME' => new Entity\StringField('NAME', array(
42 'required' => true,
43 'title' => Loc::getMessage('SENDER_INTERNALS_MODEL_ROLE_FIELD_NAME')
44 )),
45 'XML_ID' => array(
46 'data_type' => 'string',
47 'validation' => array(__CLASS__, 'validateXmlId'),
48 ),
49 );
50 }
51
57 public static function validateXmlId()
58 {
59 return [
60 new Entity\Validator\Length(null, 255),
61 ];
62 }
63}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29