method
public
CMain::getCurrentIncludedComponent()
Класс: \CMain
Сигнатура
public getCurrentIncludedComponent() : bool|CBitrixComponent
Описание
Русский перевод этого описания пока проверяется. Показан оригинал.
Returns false or instance of current component being executed.
Возвращаемое значение
bool|CBitrixComponent
Как применяется в CMain
CMain::getCurrentIncludedComponent() — метод класса \CMain старого API 1С-Битрикс (без пространства имён).
Метод объекта: сначала нужен экземпляр CMain.
/** @var \CMain $object */
$result = $object->getCurrentIncludedComponent();
// $result: bool|CBitrixComponentДругие методы CMain
__GetConditionFName()_mkchain()_ReplaceNonLatin()AddAdditionalJS()AddBufferContent()AddChainItem()AddCSSKernelInfo()AddHeadScript()AddHeadString()AddJSKernelInfo()AddLangJS()AddPanelButton()
getCurrentIncludedComponent() есть и у других классов старого API: CAllMain.
Исходный файл: source/main/classes/general/main.php:1225

