Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
orderprops_variant.php
1
<?php
2
3
namespace
Bitrix\Sale\Internals
;
4
5
use Bitrix\Main\Entity\DataManager,
6
Bitrix\Main\Entity\StringField,
7
Bitrix\Main\Entity\IntegerField;
8
25
class
OrderPropsVariantTable
extends
DataManager
26
{
27
public
static
function
getFilePath
()
28
{
29
return
__FILE__;
30
}
31
32
public
static
function
getTableName
()
33
{
34
return
'b_sale_order_props_variant'
;
35
}
36
37
public
static
function
getMap
()
38
{
39
return
array(
40
new
IntegerField
(
'ID'
, array(
'primary'
=>
true
,
'autocomplete'
=>
true
)),
41
new
IntegerField
(
'ORDER_PROPS_ID'
, array(
'required'
=>
true
)),
42
new
StringField
(
'NAME'
, array(
'required'
=>
true
)),
43
new
StringField
(
'VALUE'
),
44
new
IntegerField
(
'SORT'
, array(
'default_value'
=> 100)),
45
new
StringField
(
'DESCRIPTION'
),
46
new
StringField
(
'XML_ID'
),
47
);
48
}
49
50
public
static
function
generateXmlId
()
51
{
52
return
uniqid(
'bx_'
);
53
}
54
}
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sale\Internals\OrderPropsVariantTable
Definition
orderprops_variant.php:26
Bitrix\Sale\Internals\OrderPropsVariantTable\getMap
static getMap()
Definition
orderprops_variant.php:37
Bitrix\Sale\Internals\OrderPropsVariantTable\getFilePath
static getFilePath()
Definition
orderprops_variant.php:27
Bitrix\Sale\Internals\OrderPropsVariantTable\generateXmlId
static generateXmlId()
Definition
orderprops_variant.php:50
Bitrix\Sale\Internals\OrderPropsVariantTable\getTableName
static getTableName()
Definition
orderprops_variant.php:32
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
orderprops_variant.php
Создано системой
1.10.0