Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
syspage.php
1<?php
3
4use \Bitrix\Landing\Syspage as SyspageCore;
5use \Bitrix\Landing\PublicActionResult;
6use \Bitrix\Landing\Rights;
7use \Bitrix\Main\Localization\Loc;
8
9Loc::loadMessages(__FILE__);
10
12{
20 public static function set($id, $type, $lid = false)
21 {
22 if (
25 )
26 {
27 SyspageCore::set($id, $type, $lid);
28 }
29 }
30
37 public static function get($id, $active = false)
38 {
39 $result = new PublicActionResult();
41 {
42 $result->setResult(
43 SyspageCore::get($id, Utils::isTrue($active))
44 );
45 }
46 return $result;
47 }
48
54 public static function deleteForSite($id)
55 {
57 {
59 }
60 }
61
67 public static function deleteForLanding($id)
68 {
70 {
72 }
73 }
74
82 public static function getSpecialPage($siteId, $type, array $additional = [])
83 {
84 $result = new PublicActionResult();
86 {
87 $result->setResult(
88 SyspageCore::getSpecialPage($siteId, $type, $additional)
89 );
90 }
91 return $result;
92 }
93}
static getSpecialPage($siteId, $type, array $additional=[])
Definition syspage.php:82
static hasAccessForLanding($landingId, $accessType)
Definition rights.php:578
static hasAccessForSite($siteId, $accessType, $deleted=false)
Definition rights.php:544
static get(int $id, bool $active=false, bool $force=false)
Definition syspage.php:100
static deleteForSite($id)
Definition syspage.php:182
static getSpecialPage($siteId, $type, array $additional=[])
Definition syspage.php:223
static set($id, $type, $lid=false)
Definition syspage.php:30
static deleteForLanding($id)
Definition syspage.php:201
static loadMessages($file)
Definition loc.php:64