Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paysystemservice.php
1
<?php
8
namespace
Bitrix\Sale\Internals
;
9
10
use
Bitrix\Main
;
11
use
Bitrix\Main\Localization\Loc
;
12
13
Loc::loadMessages
(__FILE__);
14
31
class
PaySystemServiceTable
extends
Main\Entity\DataManager
32
{
33
public
static
function
getTableName
()
34
{
35
return
'b_sale_pay_system'
;
36
}
37
38
public
static
function
getMap
()
39
{
40
return
array(
41
'ID'
=> array(
42
'data_type'
=>
'integer'
,
43
'primary'
=>
true
,
44
'autocomplete'
=>
true
,
45
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_ID_FIELD'
),
46
),
47
'LID'
=> array(
48
'data_type'
=>
'string'
,
49
'validation'
=> array(__CLASS__,
'validateLid'
),
50
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_LID_FIELD'
),
51
),
52
'CURRENCY'
=> array(
53
'data_type'
=>
'string'
,
54
'validation'
=> array(__CLASS__,
'validateCurrency'
),
55
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_CURRENCY_FIELD'
),
56
),
57
'NAME'
=> array(
58
'data_type'
=>
'string'
,
59
'required'
=>
true
,
60
'validation'
=> array(__CLASS__,
'validateName'
),
61
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_NAME_FIELD'
),
62
),
63
'ACTIVE'
=> array(
64
'data_type'
=>
'boolean'
,
65
'values'
=> array(
'N'
,
'Y'
),
66
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_ACTIVE_FIELD'
),
67
),
68
'ALLOW_EDIT_PAYMENT'
=> array(
69
'data_type'
=>
'boolean'
,
70
'values'
=> array(
'N'
,
'Y'
),
71
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_ALLOW_EDIT_PAYMENT_FIELD'
),
72
),
73
'SORT'
=> array(
74
'data_type'
=>
'integer'
,
75
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_SORT_FIELD'
),
76
),
77
'DESCRIPTION'
=> array(
78
'data_type'
=>
'string'
,
79
'validation'
=> array(__CLASS__,
'validateDescription'
),
80
'title'
=>
Loc::getMessage
(
'PAY_SYSTEM_ENTITY_DESCRIPTION_FIELD'
),
81
),
82
'ACTION'
=> array(
83
'data_type'
=>
'Bitrix\Sale\Internals\PaySystemActionTable'
,
84
'reference'
=> array(
'=this.ID'
=>
'ref.PAY_SYSTEM_ID'
)
85
),
86
);
87
}
88
94
public
static
function
validateLid
()
95
{
96
return
array(
97
new
Entity
\Validator\Length(
null
, 2),
98
);
99
}
105
public
static
function
validateCurrency
()
106
{
107
return
array(
108
new
Entity
\Validator\Length(
null
, 3),
109
);
110
}
116
public
static
function
validateName
()
117
{
118
return
array(
119
new
Entity
\Validator\Length(
null
, 255),
120
);
121
}
127
public
static
function
validateDescription
()
128
{
129
return
array(
130
new
Entity
\Validator\Length(
null
, 2000),
131
);
132
}
133
134
public
static
function
getListWithInner
(array $parameters = array())
135
{
136
if
(isset($parameters[
'filter'
]))
137
{
138
$parameters[
'filter'
] = array(
139
'LOGIC'
=>
'OR'
,
140
$parameters[
'filter'
],
141
array(
142
'ID'
=> \
Bitrix
\
Sale
\PaySystem\Manager::getInnerPaySystemId()
143
)
144
);
145
}
146
147
return
parent::getList($parameters);
148
}
149
}
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\PaySystemServiceTable
Definition
paysystemservice.php:32
Bitrix\Sale\Internals\PaySystemServiceTable\getMap
static getMap()
Definition
paysystemservice.php:38
Bitrix\Sale\Internals\PaySystemServiceTable\validateDescription
static validateDescription()
Definition
paysystemservice.php:127
Bitrix\Sale\Internals\PaySystemServiceTable\validateCurrency
static validateCurrency()
Definition
paysystemservice.php:105
Bitrix\Sale\Internals\PaySystemServiceTable\validateLid
static validateLid()
Definition
paysystemservice.php:94
Bitrix\Sale\Internals\PaySystemServiceTable\getListWithInner
static getListWithInner(array $parameters=array())
Definition
paysystemservice.php:134
Bitrix\Sale\Internals\PaySystemServiceTable\validateName
static validateName()
Definition
paysystemservice.php:116
Bitrix\Sale\Internals\PaySystemServiceTable\getTableName
static getTableName()
Definition
paysystemservice.php:33
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
Bitrix
Sale
modules
sale
lib
internals
paysystemservice.php
Создано системой
1.10.0