Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
log.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
Loc::loadMessages
(__FILE__);
8
9
26
class
LogTable
extends
Entity\DataManager
27
{
28
public
static
function
getTableName
()
29
{
30
return
'b_sale_tp_vk_log'
;
31
}
32
33
public
static
function
getMap
()
34
{
35
return
array(
36
new
Entity
\
IntegerField
(
'ID'
, array(
37
'primary'
=>
true
,
38
'autocomplete'
=>
true
,
39
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_ID_FIELD'
),
40
)),
41
42
new
Entity
\
IntegerField
(
'EXPORT_ID'
, array(
43
'required'
=>
true
,
44
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_EXPORT_ID_FIELD'
),
45
)),
46
47
new
Entity
\
StringField
(
'ERROR_CODE'
, array(
48
'required'
=>
true
,
49
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_ERROR_CODE_FIELD'
),
50
)),
51
52
new
Entity
\
StringField
(
'ITEM_ID'
, array(
53
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_ITEM_ID_FIELD'
),
54
)),
55
56
new
Entity
\
DatetimeField
(
'TIME'
, array(
57
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_TIME_FIELD'
),
58
'default_value'
=>
new
Type
\
DateTime
(),
59
)),
60
61
new
Entity
\
TextField
(
'ERROR_PARAMS'
, array(
62
'title'
=>
Loc::getMessage
(
'TP_VK_LOG_ERROR_PARAMS'
),
63
'serialized'
=>
true
,
64
)),
65
);
66
}
67
}
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\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Definition
textfield.php:20
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sale\TradingPlatform\Vk\LogTable
Definition
log.php:27
Bitrix\Sale\TradingPlatform\Vk\LogTable\getMap
static getMap()
Definition
log.php:33
Bitrix\Sale\TradingPlatform\Vk\LogTable\getTableName
static getTableName()
Definition
log.php:28
Bitrix\Main\Type
Definition
collection.php:2
Bitrix\Sale\TradingPlatform\Vk
Definition
agent.php:3
modules
sale
lib
tradingplatform
vk
log.php
Создано системой
1.10.0