Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
servicerestriction.php
1<?php
2
4
7
8Loc::loadMessages(__FILE__);
9
38class ServiceRestrictionTable extends Main\Entity\DataManager
39{
40 public static function getFilePath()
41 {
42 return __FILE__;
43 }
44
45 public static function getTableName()
46 {
47 return 'b_sale_service_rstr';
48 }
49
50 public static function getMap()
51 {
52 return array(
53 'ID' => array(
54 'data_type' => 'integer',
55 'primary' => true,
56 'autocomplete' => true,
57 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_ID_FIELD'),
58 ),
59 'SERVICE_ID' => array(
60 'data_type' => 'integer',
61 'required' => true,
62 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_DELIVERY_ID_FIELD'),
63 ),
64 'SERVICE_TYPE' => array(
65 'data_type' => 'integer',
66 'required' => true,
67 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_SERVICE_TYPE_FIELD'),
68 ),
69 'SORT' => array(
70 'data_type' => 'integer',
71 'default_value' => 100,
72 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_SORT_FIELD'),
73 ),
74 'CLASS_NAME' => array(
75 'data_type' => 'string',
76 'required' => true,
77 'validation' => array(__CLASS__, 'validateClassName'),
78 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_CLASS_NAME_FIELD'),
79 ),
80 'PARAMS' => array(
81 'data_type' => 'text',
82 'serialized' => true,
83 'title' => Loc::getMessage('DELIVERY_RESTRICTION_ENTITY_PARAMS_FIELD'),
84 ),
85 );
86 }
87 public static function validateClassName()
88 {
89 return array(
90 new Main\Entity\Validator\Length(null, 255),
91 );
92 }
93}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29