Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
lognotificationtable.php
1<?php
10
15
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29