Your IP : 3.133.125.131
<?php
namespace Bitrix\Landing\Controller;
use Bitrix\Landing\Landing as LandingCore;
use Bitrix\Main\Engine\Controller;
class Landing extends Controller
{
public function getDefaultPreFilters(): array
{
return [
new \Bitrix\Main\Engine\ActionFilter\Authentication(),
new ActionFilter\Extranet()
];
}
/**
* Returns landing's data.
* @param int $landingId Landing id.
* @return array|null
*/
public function getByIdAction(int $landingId): ?array
{
$res = LandingCore::getList([
'select' => [
'*'
],
'filter' => [
'ID' => $landingId
]
]);
if ($row = $res->fetch())
{
$row['ADDITIONAL_FIELDS'] = LandingCore::getAdditionalFieldsAsArray($landingId);
return $row;
}
return null;
}
}