Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
landing.php
1<?php
3
6
7class Landing extends Controller
8{
9 public function getDefaultPreFilters(): array
10 {
11 return [
12 new \Bitrix\Main\Engine\ActionFilter\Authentication(),
14 ];
15 }
16
22 public function getByIdAction(int $landingId): ?array
23 {
25 'select' => [
26 '*'
27 ],
28 'filter' => [
29 'ID' => $landingId
30 ]
31 ]);
32 if ($row = $res->fetch())
33 {
34 $row['ADDITIONAL_FIELDS'] = LandingCore::getAdditionalFieldsAsArray($landingId);
35 return $row;
36 }
37
38 return null;
39 }
40}
static getList(array $parameters=array())