Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
autolog.php
1
<?php
2
namespace
Bitrix\Seo\Adv
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\Type\DateTime
;
7
8
Loc::loadMessages
(__FILE__);
9
42
class
AutologTable
extends
Entity\DataManager
43
{
44
const
CODE_QUANTITY_ON
= 1;
45
const
CODE_QUANTITY_OFF
= 2;
46
47
const
SUCCESS
=
'Y'
;
48
const
FAILURE
=
'N'
;
49
55
public
static
function
getTableName
()
56
{
57
return
'b_seo_adv_autolog'
;
58
}
59
65
public
static
function
getMap
()
66
{
67
return
array(
68
'ID'
=> array(
69
'data_type'
=>
'integer'
,
70
'primary'
=>
true
,
71
'autocomplete'
=>
true
,
72
),
73
'ENGINE_ID'
=> array(
74
'data_type'
=>
'integer'
,
75
'required'
=>
true
,
76
),
77
'TIMESTAMP_X'
=> array(
78
'data_type'
=>
'datetime'
,
79
'required'
=>
true
,
80
),
81
'CAMPAIGN_ID'
=> array(
82
'data_type'
=>
'integer'
,
83
'required'
=>
true
,
84
),
85
'CAMPAIGN_XML_ID'
=> array(
86
'data_type'
=>
'string'
,
87
'required'
=>
true
,
88
),
89
'BANNER_ID'
=> array(
90
'data_type'
=>
'integer'
,
91
'required'
=>
true
,
92
'title'
=>
Loc::getMessage
(
'ADV_AUTOLOG_ENTITY_BANNER_ID_FIELD'
),
93
),
94
'BANNER_XML_ID'
=> array(
95
'data_type'
=>
'string'
,
96
'required'
=>
true
,
97
),
98
'CAUSE_CODE'
=> array(
99
'data_type'
=>
'integer'
,
100
),
101
'SUCCESS'
=> array(
102
'data_type'
=>
'boolean'
,
103
'values'
=> array(static::FAILURE, static::SUCCESS),
104
),
105
);
106
}
107
108
public
static
function
onBeforeAdd
(
Entity
\
Event
$event)
109
{
110
$result =
new
Entity\EventResult();
111
$result->modifyFields(array(
"TIMESTAMP_X"
=>
new
DateTime
()));
112
return
$result;
113
}
114
}
Bitrix\Main\Event
Definition
event.php:5
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\Type\DateTime
Definition
datetime.php:9
Bitrix\Seo\Adv\AutologTable
Definition
autolog.php:43
Bitrix\Seo\Adv\AutologTable\getMap
static getMap()
Definition
autolog.php:65
Bitrix\Seo\Adv\AutologTable\SUCCESS
const SUCCESS
Definition
autolog.php:47
Bitrix\Seo\Adv\AutologTable\CODE_QUANTITY_OFF
const CODE_QUANTITY_OFF
Definition
autolog.php:45
Bitrix\Seo\Adv\AutologTable\CODE_QUANTITY_ON
const CODE_QUANTITY_ON
Definition
autolog.php:44
Bitrix\Seo\Adv\AutologTable\onBeforeAdd
static onBeforeAdd(Entity\Event $event)
Definition
autolog.php:108
Bitrix\Seo\Adv\AutologTable\FAILURE
const FAILURE
Definition
autolog.php:48
Bitrix\Seo\Adv\AutologTable\getTableName
static getTableName()
Definition
autolog.php:55
Bitrix\Seo\Adv
Definition
auto.php:2
modules
seo
lib
adv
autolog.php
Создано системой
1.10.0