Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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\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\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable
Definition
exportprofile.php:28
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\getMap
static getMap()
Definition
exportprofile.php:34
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\validateDesc
static validateDesc()
Definition
exportprofile.php:86
Bitrix\Sale\TradingPlatform\Vk\ExportProfileTable\getTableName
static getTableName()
Definition
exportprofile.php:29
Bitrix\Main\Type
Definition
collection.php:2
Bitrix\Sale\TradingPlatform\Vk
Definition
agent.php:3
modules
sale
lib
tradingplatform
vk
exportprofile.php
Создано системой
1.10.0