• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component.php
  • Класс: CBitrixComponent
  • Вызов: CBitrixComponent::getDefaultFrameMode
public function getDefaultFrameMode()
{
	$frameMode = null;

	$compositeOptions = BitrixMainCompositeHelper::getOptions();
	$componentParams = $this->arParams;

	if (
		isset($componentParams["COMPOSITE_FRAME_MODE"]) &&
		in_array($componentParams["COMPOSITE_FRAME_MODE"], array("Y", "N"))
	)
	{
		$frameMode = $componentParams["COMPOSITE_FRAME_MODE"] === "Y";
	}
	else if (isset($compositeOptions["FRAME_MODE"]))
	{
		$frameMode = $compositeOptions["FRAME_MODE"] === "Y";
	}

	return $frameMode;
}