1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
cookies.php
См. документацию.
1<?php
2namespace Bitrix\Landing\Controller;
3
4use \Bitrix\Main\Engine\Controller;
5
6class Cookies extends Controller
7{
8 public function getDefaultPreFilters()
9 {
10 return [];
11 }
12
18 public function getAgreementsAction(int $siteId): array
19 {
22 );
24
25 $data = [
26 'main' => $mainAgreement,
27 'analytic' => array_filter($agreements, function($item)
28 {
29 return $item['ACTIVE'] == 'Y' && $item['TYPE'] == 'analytic';
30 }),
31 'technical' => array_filter($agreements, function($item)
32 {
33 return $item['ACTIVE'] == 'Y' && $item['TYPE'] == 'technical';
34 }),
35 'other' => array_filter($agreements, function($item)
36 {
37 return $item['ACTIVE'] == 'Y' && $item['TYPE'] == 'other';
38 })
39 ];
40
41 foreach ($data as $key => $val)
42 {
43 if (!$val)
44 {
45 unset($data[$key]);
46 }
47 }
48
49 return $data;
50 }
51
58 public function acceptAgreementsAction(int $siteId, array $accepted = []): void
59 {
61 }
62}
acceptAgreementsAction(int $siteId, array $accepted=[])
Определения cookies.php:58
getDefaultPreFilters()
Определения cookies.php:8
getAgreementsAction(int $siteId)
Определения cookies.php:18
static getAgreementIdBySiteId(int $siteId)
Определения cookies.php:214
static getMainAgreement(?int $agreementId=null)
Определения cookies.php:45
static getAgreements(int $siteId, bool $viewMode=false)
Определения cookies.php:125
static acceptAgreement(int $siteId, array $accepted=[])
Определения cookies.php:283
$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
$siteId
Определения ajax.php:8
Определения page.php:2
Определения agent.php:3
Определения aliases.php:54
if(empty($signedUserToken)) $key
Определения quickway.php:257
$val
Определения options.php:1793