query(' INSERT INTO log_errors (id_user, message, debug_info, file, line, request_uri, time, ip_address) VALUES ({int:id_user}, {string:message}, {string:debug_info}, {string:file}, {int:line}, {string:request_uri}, CURRENT_TIMESTAMP, {string:ip_address})', $data); } public static function flush() { return Registry::get('db')->query('TRUNCATE log_errors'); } public static function getCount() { return Registry::get('db')->queryValue(' SELECT COUNT(*) FROM log_errors'); } }