Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
lognotificationtable.php
1
<?php
9
namespace
Bitrix\Main\EventLog\Internal
;
10
11
use
Bitrix\Main\ORM\Data
;
12
use
Bitrix\Main\ORM\Fields
;
13
use
Bitrix\Main\ORM\Query
;
14
use
Bitrix\Main\Localization\Loc
;
15
32
class
LogNotificationTable
extends
Data\DataManager
33
{
34
public
static
function
getTableName
()
35
{
36
return
'b_log_notification'
;
37
}
38
39
public
static
function
getMap
()
40
{
41
return
[
42
(
new
Fields\IntegerField(
"ID"
))
43
->configurePrimary(
true
)
44
->configureAutocomplete(
true
),
45
(
new
Fields\BooleanField(
"ACTIVE"
))
46
->configureValues(
"N"
,
"Y"
)
47
->configureDefaultValue(
"Y"
),
48
(
new
Fields\StringField(
"NAME"
)),
49
(
new
Fields\
StringField
(
"AUDIT_TYPE_ID"
))
50
->configureRequired(
true
)
51
->configureTitle(
Loc::getMessage
(
"log_notification_table_audit_type"
)),
52
(
new
Fields\
StringField
(
"ITEM_ID"
)),
53
(
new
Fields\
IntegerField
(
"USER_ID"
)),
54
(
new
Fields\
StringField
(
"REMOTE_ADDR"
)),
55
(
new
Fields\
StringField
(
"USER_AGENT"
)),
56
(
new
Fields\
StringField
(
"REQUEST_URI"
)),
57
(
new
Fields\
IntegerField
(
"CHECK_INTERVAL"
)),
58
(
new
Fields\
IntegerField
(
"ALERT_COUNT"
)),
59
(
new
Fields\
DatetimeField
(
"DATE_CHECKED"
)),
60
(
new
Fields\Relations\
OneToMany
(
'ACTIONS'
, LogNotificationActionTable::class,
'NOTIFICATION'
))
61
->configureJoinType(
Query
\Join::TYPE_LEFT)
62
->configureCascadeDeletePolicy(Fields\Relations\CascadePolicy::FOLLOW),
63
];
64
}
65
}
Bitrix\Main\EventLog\Internal\LogNotificationTable
Definition
lognotificationtable.php:33
Bitrix\Main\EventLog\Internal\LogNotificationTable\getMap
static getMap()
Definition
lognotificationtable.php:39
Bitrix\Main\EventLog\Internal\LogNotificationTable\getTableName
static getTableName()
Definition
lognotificationtable.php:34
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\OneToMany
Definition
onetomany.php:23
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Main\EventLog\Internal
Definition
eventlogtable.php:9
Bitrix\Main\ORM\Data
Definition
addresult.php:9
Bitrix\Main\ORM\Fields
Definition
arrayfield.php:9
Bitrix\Main\ORM\Query
Definition
chain.php:3
modules
main
lib
eventlog
internal
lognotificationtable.php
Создано системой
1.10.0