File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/landing/lib/site/scope/knowledge.php
Back
<?php namespace Bitrix\Landing\Site\Scope; use \Bitrix\Landing\Role; use \Bitrix\Landing\Manager; use \Bitrix\Landing\Domain; use \Bitrix\Landing\Site\Scope; class Knowledge extends Scope { /** * Method for first time initialization scope. * @param array $params Additional params. * @return void */ public static function init(array $params = []) { parent::init($params); Role::setExpectedType(self::$currentScopeId); } /** * Returns publication path string. * @return string */ public static function getPublicationPath() { if (\Bitrix\Landing\Connector\Mobile::isMobileHit()) { return '/mobile/knowledge/'; } else { return '/knowledge/'; } } /** * Return general key for site path. * @return string */ public static function getKeyCode() { return 'CODE'; } /** * Returns domain id for new site. * @return int */ public static function getDomainId() { if (!Manager::isB24()) { return Domain::getCurrentId(); } return 0; } /** * Returns filter value for 'TYPE' key. * @return string */ public static function getFilterType() { return self::getCurrentScopeId(); } /** * Returns array of hook's codes, which excluded by scope. * @return array */ public static function getExcludedHooks(): array { return [ 'B24BUTTON', 'COPYRIGHT', 'CSSBLOCK', 'FAVICON', 'GACOUNTER', 'GTM', 'HEADBLOCK', 'METAGOOGLEVERIFICATION', 'METAMAIN', 'METAROBOTS', 'METAYANDEXVERIFICATION', 'PIXELFB', 'PIXELVK', 'ROBOTS', 'SETTINGS', 'SPEED', 'YACOUNTER', 'COOKIES' ]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings