1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ad.php
См. документацию.
1<?php
9
10
12
15
16Loc::loadMessages(__FILE__);
17
18class Ad extends Letter
19{
25 protected static function getFilterFields()
26 {
27 return array(
28 array(
29 'CODE' => null,
30 'VALUE' => 'N',
31 'FILTER' => '=CAMPAIGN.IS_TRIGGER'
32 ),
33 array(
34 'CODE' => 'IS_ADS',
35 'VALUE' => 'Y',
36 'FILTER' => '=IS_ADS'
37 ),
38 );
39 }
40
48 protected function saveData($id, array $data)
49 {
51 $code = null;
52 if ($isAvailable)
53 {
54 if ($this instanceof iMarketing)
55 {
57 $code = 'feature:sender_fb_ads';
58 }
60 {
62 $code = 'feature:sender_ad';
63 }
64 }
65
66 if (!$isAvailable)
67 {
68 $this->addError(Loc::getMessage('SENDER_ENTITY_AD_ERROR_NO_ACCESS'), $code);
69 return $id;
70 }
71
72 return parent::saveData($id, $data);
73 }
74}
Определения ad.php:19
static getFilterFields()
Определения ad.php:25
saveData($id, array $data)
Определения ad.php:48
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$isAvailable
Определения .description.php:12
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195
Определения ad.php:8
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393