- Модуль: learning
- Путь к файлу: ~/bitrix/modules/learning/classes/general/learnexception.php
- Класс: LearnException
- Вызов: LearnException::learning_log_exception
protected function learning_log_exception ($message, $code, $line, $file, $backtrace)
{
if ( ! method_exists('CDatabase', 'Query') )
return;
global $DB;
if ( ! (is_object($DB) && method_exists($DB, 'Query')) )
return;
if ( ! $DB->TableExists('b_learn_exceptions_log') )
return;
$DB->Query (
"INSERT INTO b_learn_exceptions_log
(DATE_REGISTERED, CODE, MESSAGE, FFILE, LINE, BACKTRACE)
VALUES (" . $DB->GetNowFunction() . ", " . (int) $code . ", '"
. $DB->ForSQL($message) . "', '" . $DB->ForSQL($file) . "', "
. (int) $line . ",'"
. $DB->ForSQL(base64_encode(serialize($backtrace))) // due to charsets problems do base64_encode()
. "')
",
true);
}