34 $lastId = Option::get(
'landing', self::OPTION_CODE, 0);
35 $scopes = Option::get(
'landing', self::OPTION_CODE_SCOPES,
'');
36 $scopes = unserialize($scopes, [
'allowed_classes' =>
false]);
46 if (!is_array($scopes))
51 if (isset($scopes[0]))
65 '=DELETED' => [
'Y',
'N'],
66 '=SITE.DELETED' => [
'Y',
'N']
69 if ($row =
$res->fetch())
78 'SITE_TYPE' =>
'SITE.TYPE'
82 '=DELETED' => [
'Y',
'N'],
83 '=SITE.DELETED' => [
'Y',
'N']
90 while ($row =
$res->fetch())
96 \Bitrix\Landing\Hook::indexLanding(
101 if ($finished && $scopes)
103 array_shift($scopes);
116 $scopes = array_values($scopes);
117 Option::set(
'landing', self::OPTION_CODE,
$lastId);
118 Option::set(
'landing', self::OPTION_CODE_SCOPES, serialize($scopes));
123 Option::delete(
'landing', [
'name' => self::OPTION_CODE]);
124 Option::delete(
'landing', [
'name' => self::OPTION_CODE_SCOPES]);