1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
33
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\ORM\Fields\Validators\Validator
Определения
validator.php:18
Bitrix\Sale\TradingPlatform\MapEntityTable
Определения
mapentity.php:35
Bitrix\Sale\TradingPlatform\MapEntityTable\getMap
static getMap()
Определения
mapentity.php:46
Bitrix\Sale\TradingPlatform\MapEntityTable\getFilePath
static getFilePath()
Определения
mapentity.php:36
Bitrix\Sale\TradingPlatform\MapEntityTable\getTableName
static getTableName()
Определения
mapentity.php:41
Bitrix\Sale\TradingPlatform\MapEntityTable\validateCode
static validateCode()
Определения
mapentity.php:69
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Entity
Определения
ufield.php:9
bitrix
modules
sale
lib
tradingplatform
mapentity.php
Создано системой
1.14.0