Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
orderprops_group.php
1
<?php
8
namespace
Bitrix\Sale\Internals
;
9
10
use Bitrix\Main\Entity\DataManager,
11
Bitrix\Main\Entity\Validator;
12
29
class
OrderPropsGroupTable
extends
DataManager
30
{
31
public
static
function
getFilePath
()
32
{
33
return
__FILE__;
34
}
35
36
public
static
function
getTableName
()
37
{
38
return
'b_sale_order_props_group'
;
39
}
40
41
public
static
function
getMap
()
42
{
43
return
array(
44
'ID'
=> array(
45
'primary'
=>
true
,
46
'autocomplete'
=>
true
,
47
'data_type'
=>
'integer'
,
48
'format'
=>
'/^[0-9]{1,11}$/'
,
49
),
50
'PERSON_TYPE_ID'
=> array(
51
'required'
=>
true
,
52
'data_type'
=>
'integer'
,
53
'format'
=>
'/^[0-9]{1,11}$/'
,
54
),
55
'NAME'
=> array(
56
'required'
=>
true
,
57
'data_type'
=>
'string'
,
58
'validation'
=> array(__CLASS__,
'getNameValidators'
),
59
),
60
'CODE'
=> array(
61
'data_type'
=>
'string'
,
62
'validation'
=> array(__CLASS__,
'getCodeValidators'
),
63
),
64
'SORT'
=> array(
65
'data_type'
=>
'integer'
,
66
'format'
=>
'/^[0-9]{1,11}$/'
,
67
),
68
);
69
}
70
71
public
static
function
getNameValidators
()
72
{
73
return
array(
74
new
Validator\Length(1, 255),
75
);
76
}
77
78
public
static
function
getCodeValidators
()
79
{
80
return
array(
new
Validator\Length(
null
, 50));
81
}
82
}
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Sale\Internals\OrderPropsGroupTable
Definition
orderprops_group.php:30
Bitrix\Sale\Internals\OrderPropsGroupTable\getMap
static getMap()
Definition
orderprops_group.php:41
Bitrix\Sale\Internals\OrderPropsGroupTable\getCodeValidators
static getCodeValidators()
Definition
orderprops_group.php:78
Bitrix\Sale\Internals\OrderPropsGroupTable\getFilePath
static getFilePath()
Definition
orderprops_group.php:31
Bitrix\Sale\Internals\OrderPropsGroupTable\getNameValidators
static getNameValidators()
Definition
orderprops_group.php:71
Bitrix\Sale\Internals\OrderPropsGroupTable\getTableName
static getTableName()
Definition
orderprops_group.php:36
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
orderprops_group.php
Создано системой
1.10.0