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

getCurrentIncludedComponent() есть и у других классов старого API: CAllMain.

Исходный файл: source/main/classes/general/main.php:1225

Что будем искать? Например,Продвижение