Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
message.php
1
<?php
8
namespace
Bitrix\Sender\Internals\Model
;
9
10
use
Bitrix\Main\Entity
;
11
use
Bitrix\Main\Localization\Loc
;
12
13
Loc::loadMessages
(__FILE__);
14
32
class
MessageTable
extends
Entity\DataManager
33
{
39
public
static
function
getTableName
()
40
{
41
return
'b_sender_message'
;
42
}
43
49
public
static
function
getMap
()
50
{
51
return
array(
52
'ID'
=> array(
53
'data_type'
=>
'integer'
,
54
'primary'
=>
true
,
55
'autocomplete'
=>
true
,
56
),
57
'CODE'
=> array(
58
'data_type'
=>
'string'
,
59
'required'
=>
true
,
60
),
61
'UTM'
=> array(
62
'data_type'
=> MessageUtmTable::class,
63
'reference'
=> array(
'=this.ID'
=>
'ref.MESSAGE_ID'
),
64
),
65
);
66
}
67
74
public
static
function
onAfterDelete
(
Entity
\
Event
$event)
75
{
76
$result =
new
Entity\EventResult
;
77
$data = $event->
getParameters
();
78
79
MessageFieldTable::deleteByMessageId
($data[
'primary'
][
'ID'
]);
80
81
return
$result;
82
}
83
}
Bitrix\Main\Access\Event\EventResult
Definition
eventresult.php:13
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\EventResult\getParameters
getParameters()
Definition
eventresult.php:44
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Sender\Internals\Model\MessageFieldTable\deleteByMessageId
static deleteByMessageId($messageId)
Definition
messagefield.php:80
Bitrix\Sender\Internals\Model\MessageTable
Definition
message.php:33
Bitrix\Sender\Internals\Model\MessageTable\getMap
static getMap()
Definition
message.php:49
Bitrix\Sender\Internals\Model\MessageTable\onAfterDelete
static onAfterDelete(Entity\Event $event)
Definition
message.php:74
Bitrix\Sender\Internals\Model\MessageTable\getTableName
static getTableName()
Definition
message.php:39
Bitrix\Sender\Internals\Model
Definition
abuse.php:3
modules
sender
lib
internals
model
message.php
Создано системой
1.10.0