method
public
final
ComponentController::getCurrentUser()
Сигнатура
public final getCurrentUser() : CurrentUser
Возвращаемое значение
CurrentUser
Как применяется в ComponentController
ComponentController::getCurrentUser() — метод класса \Bitrix\Main\Engine\Component\ComponentController модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр ComponentController.
use Bitrix\Main\Engine\Component\ComponentController;
/** @var ComponentController $object */
$result = $object->getCurrentUser();
// $result: CurrentUserДругие методы ComponentController
className()Возвращает полностью квалифицированное имя этого класса.configureActions()convertKeysToCamelCase()Преобразует ключи массива в нотацию camelCase.finalizeResponse()Финализирует ответ.forward()generateActionMethodName()getActionUri()Возвращает uri для ajax-эндпоинта по имени действия. Это вспомогательный метод, который использует относительное имя…getAutoWiredParameters()getConfigurationOfActions()getDefaultAutoWiredParameters()getErrorByCode()Получение единственной ошибки с необходимым кодом.getErrors()Получение массива ошибок.
getCurrentUser() есть и у других классов модуля «Главный модуль»: Action, ClosureAction, Controller, DefaultController, FallbackAction, InlineAction, InlineAction, JsonController.
Исходный файл: source/main/lib/engine/component/componentcontroller.php:268

