logControllerToSiteAuth
\Bitrix\Main\Entity\AddResult public static \Bitrix\Controller\AuthLogTable::logControllerToSiteAuth( integer $controllerMemberId, integer $userId, boolean $isSuccess = true, string $type = '', string $userName = '' );
Static method logs authorization at the site (from controller).
Parameters
Parameter | Description | Version |
---|---|---|
$controllerMemberId | ID for site connected to the controller. | |
$userId | User ID. | |
$isSuccess | Operation success/failure. | |
$type | Optional type. | |
$userName | Optional user name details. |
Exceptions
\Exception
See Also
- isEnabled (
\Bitrix\Controller\AuthLogTable::isEnabled
)
Example
© «Bitrix24», 2001-2024