1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
41
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
Определения
event.php:5
Bitrix\Main\Type\DateTime
Определения
datetime.php:9
Bitrix\Seo\Adv\AutologTable
Определения
autolog.php:43
Bitrix\Seo\Adv\AutologTable\getMap
static getMap()
Определения
autolog.php:65
Bitrix\Seo\Adv\AutologTable\SUCCESS
const SUCCESS
Определения
autolog.php:47
Bitrix\Seo\Adv\AutologTable\CODE_QUANTITY_OFF
const CODE_QUANTITY_OFF
Определения
autolog.php:45
Bitrix\Seo\Adv\AutologTable\CODE_QUANTITY_ON
const CODE_QUANTITY_ON
Определения
autolog.php:44
Bitrix\Seo\Adv\AutologTable\onBeforeAdd
static onBeforeAdd(Entity\Event $event)
Определения
autolog.php:108
Bitrix\Seo\Adv\AutologTable\FAILURE
const FAILURE
Определения
autolog.php:48
Bitrix\Seo\Adv\AutologTable\getTableName
static getTableName()
Определения
autolog.php:55
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Main\Entity
Определения
ufield.php:9
$event
$event
Определения
prolog_after.php:141
bitrix
modules
seo
lib
adv
autolog.php
Создано системой
1.14.0