- Модуль: controller
- Путь к файлу: ~/bitrix/modules/controller/lib/authlog.php
- Класс: BitrixControllerAuthLogTable
- Вызов: AuthLogTable::logSiteToSiteAuth
static function logSiteToSiteAuth($fromControllerMemberId, $toControllerMemberId, $isSuccess = true, $type = '', $userName = '')
{
$fields = array(
"FROM_CONTROLLER_MEMBER_ID" => $fromControllerMemberId,
"TO_CONTROLLER_MEMBER_ID" => $toControllerMemberId,
"STATUS" => $isSuccess? "Y": "N",
"TYPE" => $type?: false,
"USER_NAME" => $userName?: false,
);
return self::add($fields);
}