• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/log/execlog.php
  • Класс: BitrixImOpenLinesLogExecLog
  • Вызов: ExecLog::setExecFunction
static function setExecFunction($execFunction, $isSuccess = true)
{
	$execCollection = self::getExecByFunction($execFunction);
	$fields = array(
		'LAST_EXEC_TIME' => new DateTime(),
		'IS_SUCCESS' => $isSuccess ? 'Y' : 'N'
	);

	if ($exec = $execCollection->Fetch())
	{
		$result = ExecLogTable::update($exec['ID'], $fields);
	}
	else
	{
		$fields['EXEC_FUNCTION'] = $execFunction;
		$result = ExecLogTable::add($fields);
	}

	return $result;
}