method public final

JsonController::getCurrentUser()

Класс: \Bitrix\Main\Engine\JsonController

Сигнатура

public final getCurrentUser() : CurrentUser

Возвращаемое значение

CurrentUser

Как применяется в JsonController

JsonController::getCurrentUser() — метод класса \Bitrix\Main\Engine\JsonController модуля «Главный модуль».

Метод объекта: сначала нужен экземпляр JsonController.

use Bitrix\Main\Engine\JsonController;

/** @var JsonController $object */
$result = $object->getCurrentUser();
// $result: CurrentUser

Другие методы JsonController

getCurrentUser() есть и у других классов модуля «Главный модуль»: Action, ClosureAction, ComponentController, Controller, DefaultController, FallbackAction, InlineAction, InlineAction.

Исходный файл: source/main/lib/engine/jsoncontroller.php:268

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