- Модуль: controller
- Путь к файлу: ~/bitrix/modules/controller/classes/general/controllermember.php
- Класс: CAllControllerMember
- Вызов: CAllControllerMember::RunCommandWithLog
static function RunCommandWithLog($member_id, $command, $arParameters = Array(), $task_id=false, $operation = 'run')
{
/** @global CMain $APPLICATION */
global $APPLICATION;
$arControllerLog = Array(
'NAME'=>'REMOTE_COMMAND',
'CONTROLLER_MEMBER_ID'=>$member_id,
'DESCRIPTION'=>"command: '$command'nnoperation: '$operation'",
'STATUS'=>'Y'
);
$res = CControllerMember::RunCommand($member_id, $command, $arParameters, $task_id, $operation);
if($res === false)
{
$e = $APPLICATION->GetException();
$arControllerLog['DESCRIPTION'] = $e->GetString()."rn".$arControllerLog['DESCRIPTION'];
$arControllerLog['STATUS'] = 'N';
}
CControllerLog::Add($arControllerLog);
return $res;
}