Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
groupthread.php
1
<?php
8
namespace
Bitrix\Sender\Internals\Model
;
9
10
use
Bitrix\Main\Entity
;
11
use
Bitrix\Main\Localization\Loc
;
12
use
Bitrix\Main\ORM\Query\Query
;
13
14
Loc::loadMessages
(__FILE__);
15
32
class
GroupThreadTable
extends
Entity\DataManager
33
{
34
const
STATUS_NEW
=
'N'
;
35
const
STATUS_IN_PROGRESS
=
'P'
;
36
const
STATUS_DONE
=
'D'
;
37
43
public
static
function
getTableName
()
44
{
45
return
'b_sender_group_thread'
;
46
}
47
53
public
static
function
getMap
()
54
{
55
return
[
56
'THREAD_ID'
=> [
57
'data_type'
=>
'integer'
,
58
'primary'
=>
true
,
59
'autocomplete'
=>
true
,
60
],
61
'GROUP_STATE_ID'
=> [
62
'data_type'
=>
'integer'
,
63
'primary'
=>
true
,
64
'required'
=>
true
,
65
],
66
'STEP'
=> [
67
'data_type'
=>
'integer'
,
68
'required'
=>
true
,
69
],
70
'STATUS'
=> [
71
'data_type'
=>
'string'
,
72
'required'
=>
true
,
73
],
74
'THREAD_TYPE'
=> [
75
'data_type'
=>
'string'
,
76
'required'
=>
true
,
77
],
78
'EXPIRE_AT'
=> [
79
'data_type'
=>
'datetime'
,
80
'required'
=>
true
,
81
],
82
];
83
}
84
92
public
static
function
deleteList
(array $filter)
93
{
94
$entity = static::getEntity();
95
$connection = $entity->getConnection();
96
97
\CTimeZone::disable();
98
$sql = sprintf(
99
'DELETE FROM %s WHERE %s'
,
100
$connection->getSqlHelper()->quote($entity->getDbTableName()),
101
Query::buildFilterSql($entity, $filter)
102
);
103
$res = $connection->query($sql);
104
\CTimeZone::enable();
105
106
return
$res;
107
}
108
}
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\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Sender\Internals\Model\GroupThreadTable
Definition
groupthread.php:33
Bitrix\Sender\Internals\Model\GroupThreadTable\getMap
static getMap()
Definition
groupthread.php:53
Bitrix\Sender\Internals\Model\GroupThreadTable\deleteList
static deleteList(array $filter)
Definition
groupthread.php:92
Bitrix\Sender\Internals\Model\GroupThreadTable\STATUS_DONE
const STATUS_DONE
Definition
groupthread.php:36
Bitrix\Sender\Internals\Model\GroupThreadTable\STATUS_IN_PROGRESS
const STATUS_IN_PROGRESS
Definition
groupthread.php:35
Bitrix\Sender\Internals\Model\GroupThreadTable\STATUS_NEW
const STATUS_NEW
Definition
groupthread.php:34
Bitrix\Sender\Internals\Model\GroupThreadTable\getTableName
static getTableName()
Definition
groupthread.php:43
Bitrix\Sender\Internals\Model
Definition
abuse.php:3
modules
sender
lib
internals
model
groupthread.php
Создано системой
1.10.0