Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
messagefield.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
MessageFieldTable
extends
Entity\DataManager
33
{
39
public
static
function
getTableName
()
40
{
41
return
'b_sender_message_field'
;
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
'TYPE'
=> array(
63
'data_type'
=>
'string'
,
64
'required'
=>
true
,
65
),
66
'VALUE'
=> array(
67
'data_type'
=>
'text'
,
68
'save_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getSaveModificator'
),
69
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
70
),
71
);
72
}
73
80
public
static
function
deleteByMessageId
($messageId)
81
{
82
$items = static::getList([
83
'select'
=> [
'MESSAGE_ID'
,
'CODE'
],
84
'filter'
=> [
'=MESSAGE_ID'
=> $messageId]
85
]);
86
foreach
($items as $primary)
87
{
88
$result = static::delete($primary);
89
if
(!$result->isSuccess())
90
{
91
return
false
;
92
}
93
}
94
95
return
true
;
96
}
97
}
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
Definition
messagefield.php:33
Bitrix\Sender\Internals\Model\MessageFieldTable\getMap
static getMap()
Definition
messagefield.php:49
Bitrix\Sender\Internals\Model\MessageFieldTable\deleteByMessageId
static deleteByMessageId($messageId)
Definition
messagefield.php:80
Bitrix\Sender\Internals\Model\MessageFieldTable\getTableName
static getTableName()
Definition
messagefield.php:39
Bitrix\Sender\Internals\Model
Definition
abuse.php:3
modules
sender
lib
internals
model
messagefield.php
Создано системой
1.10.0