Documentation

logSiteToControllerAuth

\Bitrix\Main\Entity\AddResult public static
\Bitrix\Controller\AuthLogTable::logSiteToControllerAuth(
 integer $controllerMemberId,
 integer $userId,
 boolean $isSuccess = true,
 string $type = '',
 string $userName = ''
);

Static method logs authorization at the controller.

Parameters

ParameterDescriptionVersion
$controllerMemberIdID for site connected to the controller.
$userIdUser ID.
$isSuccessOperation success/failure.
$typeOptional type string.
$userNameUser name optional details.

Exceptions

  • \Exception

See Also

  • isEnabled (\Bitrix\Controller\AuthLogTable::isEnabled)

Example



© «Bitrix24», 2001-2024