Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
triggercampaign.php
1
<?php
8
namespace
Bitrix\Sender\Entity
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Main\SiteTable
;
12
use Bitrix\Main\Entity\ExpressionField;
13
14
use
Bitrix\Sender\MailingTable
;
15
16
Loc::loadMessages
(__FILE__);
17
22
class
TriggerCampaign
extends
Campaign
23
{
25
protected
$chain
;
26
32
protected
function
getDefaultData
()
33
{
34
return
[
35
'ACTIVE'
=>
'N'
,
36
'IS_TRIGGER'
=>
'Y'
,
37
'SITE_ID'
=> SITE_ID,
38
] + parent::getDefaultData();
39
}
40
47
public
static
function
getList
(array $parameters = [])
48
{
49
if
(!isset($parameters[
'filter'
]))
50
{
51
$parameters[
'filter'
] = [];
52
}
53
$parameters[
'filter'
][
'=IS_TRIGGER'
] =
'Y'
;
54
55
return
MailingTable::getList($parameters);
56
}
57
63
public
function
getChain
()
64
{
65
if
(!$this->chain)
66
{
67
$this->chain = (
new
Chain
)->load($this->
getId
());
68
}
69
70
return
$this->chain
;
71
}
72
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Query\Chain
Definition
chain.php:14
Bitrix\Main\SiteTable
Definition
site.php:32
Bitrix\Sender\Connector\Base\getId
getId()
Definition
base.php:206
Bitrix\Sender\Entity\Campaign
Definition
campaign.php:23
Bitrix\Sender\Entity\TriggerCampaign
Definition
triggercampaign.php:23
Bitrix\Sender\Entity\TriggerCampaign\getChain
getChain()
Definition
triggercampaign.php:63
Bitrix\Sender\Entity\TriggerCampaign\$chain
$chain
Definition
triggercampaign.php:25
Bitrix\Sender\Entity\TriggerCampaign\getDefaultData
getDefaultData()
Definition
triggercampaign.php:32
Bitrix\Sender\Entity\TriggerCampaign\getList
static getList(array $parameters=[])
Definition
triggercampaign.php:47
Bitrix\Sender\MailingTable
Definition
mailing.php:21
Bitrix\Sender\Entity
Definition
ad.php:8
modules
sender
lib
entity
triggercampaign.php
Создано системой
1.10.0