Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
servicerestriction.php
1
<?php
2
3
namespace
Bitrix\Sale\Internals
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
Loc::loadMessages
(__FILE__);
9
38
class
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
}
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sale\Internals\ServiceRestrictionTable
Definition
servicerestriction.php:39
Bitrix\Sale\Internals\ServiceRestrictionTable\getMap
static getMap()
Definition
servicerestriction.php:50
Bitrix\Sale\Internals\ServiceRestrictionTable\getFilePath
static getFilePath()
Definition
servicerestriction.php:40
Bitrix\Sale\Internals\ServiceRestrictionTable\validateClassName
static validateClassName()
Definition
servicerestriction.php:87
Bitrix\Sale\Internals\ServiceRestrictionTable\getTableName
static getTableName()
Definition
servicerestriction.php:45
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
servicerestriction.php
Создано системой
1.10.0