4use \Bitrix\Landing\Site;
5use \Bitrix\Landing\Demos as DemoCore;
6use \Bitrix\Landing\PublicActionResult;
16 return Block::getRepository(
null,
true);
40 isset($filter[
'used_in_public']) &&
41 $filter[
'used_in_public'] ==
'Y'
44 $resultNotPublic = $result;
47 'ID',
'TITLE',
'TPL_CODE'
51 '=TPL_CODE' => array_keys($resultNotPublic)
54 while ($row = $res->fetch())
56 unset($resultNotPublic[$row[
'TPL_CODE']]);
58 foreach ($resultNotPublic as $key => $foo)
67 isset($filter[
'only_rest']) &&
68 $filter[
'only_rest'] ==
'Y'
71 foreach ($result as $key => $item)
128 '=APP_CODE' => $appCode
142 $template = DemoCore::getList([
143 'filter' => [
'ID' => $id]
148 $template[
'MANIFEST'] = unserialize($template[
'MANIFEST'], [
'allowed_classes' =>
false]);
149 $result->setResult($template);
static getAppItems(string $appCode)
static getUrlPreview($code, $type)
static getAppItemManifest(int $id)
static getDemoItemList(string $type, bool $isPage, array $filter=[])
static getDemoPageList(string $type, array $filter=[])
static getDemoSiteList(string $type, array $filter=[])
static getList(array $params=array())
static getUrlPreview($code, $type)
static getSiteList($type, array $filter=[])
static getPageList($type, array $filter=[])
static getList(array $params=[], $initiator=null)