User:Emanuele/hooktemplate test: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "{{:User:Emanuele/smctemplate |hook=integrate_output_error |from=Errors.php, just after the error itself has been logged but before it has been output to the user. |purpose=To al...")
 
No edit summary
Line 1: Line 1:
{{:User:Emanuele/smctemplate
{{:User:Emanuele/hooktemplate
|hook=integrate_output_error
|hook=integrate_output_error
|from=Errors.php, just after the error itself has been logged but before it has been output to the user.  
|from=Errors.php, just after the error itself has been logged but before it has been output to the user.  

Revision as of 09:45, 13 April 2011

Called from: Errors.php, just after the error itself has been logged but before it has been output to the user.

Purpose: To allow reformatting of the error message, prior to notification to user, or perhaps to log or process in an outside system (e.g. sending an email to administrators on certain types of error occurring).

Accepts:1 function name.

Sends:

  • $message is the SMF category of an error, e.g. General (general), undefined variables/indexes (undefined_vars), user errors like forgotten passwords (user), database/query errors (database).
  • $error_type is the PHP error level ident. See the PHP manual for the values this is.
  • $error_level is the filename this occurred in (full server path). $line is the line number of the error.
  • $file


  • Advertisement: