Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
messageutm.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
MessageUtmTable
extends
Entity\DataManager
33
{
39
public
static
function
getTableName
()
40
{
41
return
'b_sender_message_utm'
;
42
}
43
49
public
static
function
getMap
()
50
{
51
return
array(
52
'MESSAGE_ID'
=> array(
53
'data_type'
=>
'integer'
,
54
'required'
=>
true
,
55
'primary'
=>
true
,
56
),
57
'CODE'
=> array(
58
'data_type'
=>
'string'
,
59
'required'
=>
true
,
60
'primary'
=>
true
,
61
),
62
'VALUE'
=> array(
63
'data_type'
=>
'text'
,
64
'required'
=>
true
,
65
),
66
'MESSAGE'
=> array(
67
'data_type'
=> MessageTable::class,
68
'reference'
=> array(
'=this.MESSAGE_ID'
=>
'ref.ID'
),
69
),
70
);
71
}
72
79
public
static
function
deleteByMessageId
($messageId)
80
{
81
$items = static::getList(
82
[
83
'select'
=> [
'MESSAGE_ID'
,
'CODE'
],
84
'filter'
=> [
'=MESSAGE_ID'
=> $messageId]
85
]
86
);
87
foreach
($items as $primary)
88
{
89
$result = static::delete($primary);
90
if
(!$result->isSuccess())
91
{
92
return
false
;
93
}
94
}
95
96
return
true
;
97
}
98
}
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\MessageUtmTable
Definition
messageutm.php:33
Bitrix\Sender\Internals\Model\MessageUtmTable\getMap
static getMap()
Definition
messageutm.php:49
Bitrix\Sender\Internals\Model\MessageUtmTable\deleteByMessageId
static deleteByMessageId($messageId)
Definition
messageutm.php:79
Bitrix\Sender\Internals\Model\MessageUtmTable\getTableName
static getTableName()
Definition
messageutm.php:39
Bitrix\Sender\Internals\Model
Definition
abuse.php:3
modules
sender
lib
internals
model
messageutm.php
Создано системой
1.10.0