• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/basecomponent.php
  • Класс: BitrixDiskInternalsBaseComponent
  • Вызов: BaseComponent::wrapAsSidepanelContent
protected function wrapAsSidepanelContent()
{
	if (self::$alreadyWrappedForSidepanel)
	{
		return false;
	}

	if (
		$this instanceof SidePanelWrappable &&
		($this->request->get('IFRAME') === 'Y' || $this->request->getPost('IFRAME') === 'Y')
	)
	{
		self::$alreadyWrappedForSidepanel = true;

		global $APPLICATION;
		$APPLICATION->IncludeComponent(
			'bitrix:disk.sidepanel.wrapper',
			"",
			array(
				'POPUP_COMPONENT_NAME' => $this->getName(),
				'POPUP_COMPONENT_TEMPLATE_NAME' => "",
				'POPUP_COMPONENT_PARAMS' => $this->arParams,
			)
		);

		return true;
	}

	return false;
}