1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
servicerestriction.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Internals;
4
5use Bitrix\Main;
6use Bitrix\Main\Localization\Loc;
7
8Loc::loadMessages(__FILE__);
9
37
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}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения ufield.php:9