• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/page/framecomponent.php
  • Класс: BitrixMainPageFrameComponent
  • Вызов: FrameComponent::getFrameType
public function getFrameType()
{
	$componentParams = $this->component->arParams;
	if (isset($componentParams["COMPOSITE_FRAME_TYPE"]) && is_string($componentParams["COMPOSITE_FRAME_TYPE"]))
	{
		$type = strtoupper($componentParams["COMPOSITE_FRAME_TYPE"]);
		if (in_array($type, static::getFrameTypes()))
		{
			return $type;
		}
	}

	$compositeOptions = CHTMLPagesCache::getOptions();
	if (isset($compositeOptions["FRAME_TYPE"]) && is_string($compositeOptions["FRAME_TYPE"]))
	{
		$type = strtoupper($compositeOptions["FRAME_TYPE"]);
		if (in_array($type, static::getFrameTypes()))
		{
			return $type;
		}
	}

	return "STATIC";
}