Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
triggercampaign.php
1<?php
9
12use Bitrix\Main\Entity\ExpressionField;
13
15
16Loc::loadMessages(__FILE__);
17
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}
static loadMessages($file)
Definition loc.php:64
static getList(array $parameters=[])