1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
exportprofile.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sale\TradingPlatform\Vk;
3
4
use Bitrix\Main\Entity;
5
use Bitrix\Main\Type;
6
use Bitrix\Main\Localization\Loc;
7
8
Loc::loadMessages(__FILE__);
9
10
27
class
ExportProfileTable
extends
Entity\DataManager
28
{
29
public
static
function
getTableName
()
30
{
31
return
'b_sale_tp_vk_profile'
;
32
}
33
34
public
static
function
getMap
()
35
{
36
return
array
(
37
new
Entity
\
IntegerField
(
'ID'
,
array
(
38
'primary'
=>
true
,
39
'autocomplete'
=>
true
,
40
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_ID_FIELD'
),
41
)),
42
43
new
Entity
\
StringField
(
'DESCRIPTION'
,
array
(
44
'required'
=>
true
,
45
'validation'
=>
array
(__CLASS__,
'validateDesc'
),
46
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_DESCRIPTION_FIELD'
),
47
)),
48
49
new
Entity
\
IntegerField
(
'PLATFORM_ID'
,
array
(
50
'required'
=>
true
,
51
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_PLATFORM_ID_FIELD'
),
52
)),
53
54
new
Entity
\
StringField
(
'VK_SETTINGS'
,
array
(
55
'required'
=>
false
,
56
'serialized'
=>
true
,
57
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_VK_SETTINGS_FIELD'
),
58
)),
59
60
new
Entity
\
StringField
(
'EXPORT_SETTINGS'
,
array
(
61
'required'
=>
false
,
62
'serialized'
=>
true
,
63
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_EXPORT_SETTINGS_FIELD'
),
64
)),
65
66
new
Entity
\
StringField
(
'OAUTH'
,
array
(
67
'required'
=>
false
,
68
'serialized'
=>
true
,
69
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_OAUTH_SETTINGS_FIELD'
),
70
)),
71
72
new
Entity
\
StringField
(
'PROCESS'
,
array
(
73
'required'
=>
false
,
74
'serialized'
=>
true
,
75
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_PROCESS_FIELD'
),
76
)),
77
78
new
Entity
\
StringField
(
'JOURNAL'
,
array
(
79
'required'
=>
false
,
80
'serialized'
=>
true
,
81
'title'
=> Loc::getMessage(
'TP_VK_PROFILE_JOURNAL_FIELD'
),
82
)),
83
);
84
}
85
86
public
static
function
validateDesc
()
87
{
88
return
array
(
89
new
Entity
\
Validator
\Length(3, 100),
90
);
91
}
92
}
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\Validators\Validator
Определения
validator.php:18
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable
Определения
exportprofile.php:28
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\getMap
static getMap()
Определения
exportprofile.php:34
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\validateDesc
static validateDesc()
Определения
exportprofile.php:86
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\getTableName
static getTableName()
Определения
exportprofile.php:29
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
vk
exportprofile.php
Создано системой
1.14.0