Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
mapentity.php
1
<?php
2
namespace
Bitrix\Sale\TradingPlatform
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
34
class
MapEntityTable
extends
Entity\DataManager
35
{
36
public
static
function
getFilePath
()
37
{
38
return
__FILE__;
39
}
40
41
public
static
function
getTableName
()
42
{
43
return
'b_sale_tp_map_entity'
;
44
}
45
46
public
static
function
getMap
()
47
{
48
return
array(
49
'ID'
=> array(
50
'data_type'
=>
'integer'
,
51
'primary'
=>
true
,
52
'autocomplete'
=>
true
,
53
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_MAP_ENTITY_ENTITY_ID_FIELD'
),
54
),
55
'TRADING_PLATFORM_ID'
=> array(
56
'data_type'
=>
'integer'
,
57
'required'
=>
true
,
58
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_MAP_ENTITY_ENTITY_TRADING_PLATFORM_ID_FIELD'
),
59
),
60
'CODE'
=> array(
61
'data_type'
=>
'string'
,
62
'required'
=>
true
,
63
'validation'
=> array(__CLASS__,
'validateCode'
),
64
'title'
=>
Loc::getMessage
(
'TRADING_PLATFORM_MAP_ENTITY_ENTITY_CODE_FIELD'
),
65
),
66
);
67
}
68
69
public
static
function
validateCode
()
70
{
71
return
array(
72
new
Entity
\Validator\Length(
null
, 255),
73
);
74
}
75
}
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\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Sale\TradingPlatform\MapEntityTable
Definition
mapentity.php:35
Bitrix\Sale\TradingPlatform\MapEntityTable\getMap
static getMap()
Definition
mapentity.php:46
Bitrix\Sale\TradingPlatform\MapEntityTable\getFilePath
static getFilePath()
Definition
mapentity.php:36
Bitrix\Sale\TradingPlatform\MapEntityTable\getTableName
static getTableName()
Definition
mapentity.php:41
Bitrix\Sale\TradingPlatform\MapEntityTable\validateCode
static validateCode()
Definition
mapentity.php:69
Bitrix\Sale\TradingPlatform
Definition
catalogsectiontab.php:3
modules
sale
lib
tradingplatform
mapentity.php
Создано системой
1.10.0