Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Abstract class for the management of system errors, errors due to wrong actions of the user, warning messages. More...
Static Public Member Functions | |
static | codeMessages () |
List of system default errors coded by int keys. | |
static | errorMessage ($message, $link) |
Saves the error in the active session and redirect to the given url (where the error will be shown) | |
static | getErrorMessage () |
Gets the error message from the active session. | |
static | syserrorMessage ($class, $function, $message, $line, $noDebugMsg=null) |
Management of system errors. | |
static | warningMessage ($message, $link) |
Saves the warning in the active session and redirect to the given url (where the warning will be shown) |
Abstract class for the management of system errors, errors due to wrong actions of the user, warning messages.
System errors are displayed as independent pages, and the information shown depends on the value of the DEBUG setting in the configuration file.
Errors and warnings are stored in a session variable and shown after url redirecting.
Definition at line 32 of file error.class.php.
static Error::codeMessages | ( | ) | [static] |
List of system default errors coded by int keys.
Definition at line 40 of file error.class.php.
static Error::errorMessage | ( | $ | message, |
$ | link | ||
) | [static] |
Saves the error in the active session and redirect to the given url (where the error will be shown)
mixed | $message | the error message. Possible values are:
|
mixed | $link | the redirection url |
Definition at line 110 of file error.class.php.
static Error::getErrorMessage | ( | ) | [static] |
Gets the error message from the active session.
Definition at line 162 of file error.class.php.
static Error::syserrorMessage | ( | $ | class, |
$ | function, | ||
$ | message, | ||
$ | line, | ||
$ | noDebugMsg = null |
||
) | [static] |
Management of system errors.
If the DEBUG setting in the configuration.php is set to true displays the error with all the information, otherwise displays a custom message.
string | $class | the class which triggers the error |
string | $function | the function which triggers the error |
string | $message | the error message |
int | $line | the line number where the error occurs |
string | $noDebugMsg | the message to show if DEBUG mode is disabled |
Definition at line 61 of file error.class.php.
static Error::warningMessage | ( | $ | message, |
$ | link | ||
) | [static] |
Saves the warning in the active session and redirect to the given url (where the warning will be shown)
mixed | $message | associative array in the form array('warning'=>'warning_message', 'hint'=>'warning_hint') |
mixed | $link | the redirection url |
Definition at line 138 of file error.class.php.