File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/exchange/integration/admin/link.php
Back
<?php namespace Bitrix\Sale\Exchange\Integration\Admin; class Link { private static $instance = null; protected $type; public function __construct() { $this->type = static::resolveModeType(); } public function getType() { return $this->type; } protected function resolveModeType() { $fields = new \Bitrix\Sale\Internals\Fields( \Bitrix\Main\Context::getCurrent()->getRequest()->toArray()); if($this->isRestAppLayoutMode($fields)) { $type = ModeType::APP_LAYOUT_TYPE; } else { $type = ModeType::DEFAULT_TYPE; } return $type; } protected function isRestAppLayoutMode(\Bitrix\Sale\Internals\Fields $fields) { return $fields->get('restAppLayoutMode') == 'Y'; } public function create() { return Factory::create($this->getType()); } public static function getInstance() { if(self::$instance === null) { self::$instance = new static(); } return self::$instance; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings