method
public
Authentication::onBeforeAction()
Сигнатура
public onBeforeAction(Event $event) : mixed
Параметры
$event
Event
Возвращаемое значение
mixed
Как применяется в Authentication
Authentication::onBeforeAction() — метод класса \Bitrix\Main\Engine\ActionFilter\Authentication модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр Authentication.
use Bitrix\Main\Engine\ActionFilter\Authentication;
/** @var Authentication $object */
$event = null; // Event
$result = $object->onBeforeAction($event);
// $result: mixedДругие методы Authentication
bindAction()className()Возвращает полностью квалифицированное имя этого класса.getAction()getErrorByCode()Получение единственной ошибки с необходимым кодом.getErrors()Получение массива ошибок.listAllowedScopes()Список допустимых значений областей, в которых должен работать фильтр.onAfterAction()
onBeforeAction() есть и у других классов модуля «Главный модуль»: Base, CloseSession, ClosureWrapper, ContentType, Cors, Csrf, HttpMethod, PostDecode.
Исходный файл: source/main/lib/engine/actionfilter/authentication.php:28

