Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
role.php
1<?php
2
4
9
10Loc::loadMessages(__FILE__);
11
30class RoleTable extends Entity\DataManager
31{
38 public static function getTableName()
39 {
40 return 'b_sender_role';
41 }
42
50 public static function getMap()
51 {
52 return array(
53 'ID' => new Entity\IntegerField('ID', array(
54 'primary' => true,
55 'autocomplete' => true,
56 )),
57 'DEAL_CATEGORY_ID' => new Entity\IntegerField('DEAL_CATEGORY_ID', array(
58 'required' => true
59 )),
60 'NAME' => new Entity\StringField('NAME', array(
61 'required' => true,
62 'title' => Loc::getMessage('SENDER_INTERNALS_MODEL_ROLE_FIELD_NAME')
63 )),
64 'XML_ID' => array(
65 'data_type' => 'string',
66 'validation' => array(__CLASS__, 'validateXmlId'),
67 )
68 );
69 }
70
77 public static function validateXmlId()
78 {
79 return [
80 new Entity\Validator\Length(null, 255),
81 ];
82 }
83}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29