Inheritance diagram for ErrorHandler:

Public Member Functions | |
| __construct ($method, $messages) | |
| __construct ($method, $messages) | |
| _outputMessage ($template) | |
| error ($params) | |
| error ($params) | |
| error404 ($params) | |
| error404 ($params) | |
| missingAction ($params) | |
| missingAction ($params) | |
| missingComponentClass ($params) | |
| missingComponentClass ($params) | |
| missingComponentFile ($params) | |
| missingComponentFile ($params) | |
| missingConnection ($params) | |
| missingConnection ($params) | |
| missingController ($params) | |
| missingController ($params) | |
| missingDatabase ($params=array()) | |
| missingDatabase ($params=array()) | |
| missingHelperClass ($params) | |
| missingHelperClass ($params) | |
| missingHelperFile ($params) | |
| missingHelperFile ($params) | |
| missingLayout ($params) | |
| missingLayout ($params) | |
| missingModel ($params) | |
| missingModel ($params) | |
| missingTable ($params) | |
| missingTable ($params) | |
| missingView ($params) | |
| missingView ($params) | |
| privateAction ($params) | |
| privateAction ($params) | |
| stderr ($string) | |
| stdout ($string, $newline=true) | |
Public Attributes | |
| $controller = null | |
| $stderr | |
| $stdout | |
Definition at line 33 of file error.php.
| ErrorHandler::__construct | ( | $ | method, | |
| $ | messages | |||
| ) |
Class constructor.
| string | $method Method dispatching an error | |
| array | $messages Error messages |
Definition at line 54 of file error.php.
References error(), error404(), Configure::read(), stderr(), and stdout().
| ErrorHandler::__construct | ( | $ | method, | |
| $ | messages | |||
| ) |
Class constructor.
| string | $method Method producing the error | |
| array | $messages Error messages |
Definition at line 83 of file error.php.
References Object::_stop(), Sanitize::clean(), Object::dispatchMethod(), error(), error404(), App::import(), and Configure::read().
| ErrorHandler::_outputMessage | ( | $ | template | ) |
Output message
protected
Definition at line 372 of file error.php.
Referenced by error(), error404(), missingAction(), missingComponentClass(), missingComponentFile(), missingConnection(), missingController(), missingDatabase(), missingHelperClass(), missingHelperFile(), missingLayout(), missingModel(), missingTable(), missingView(), and privateAction().
| ErrorHandler::error | ( | $ | params | ) |
Displays an error page (e.g. 404 Not found).
| array | $params Parameters for controller public |
Definition at line 127 of file error.php.
References _outputMessage(), error404(), and name().
| ErrorHandler::error | ( | $ | params | ) |
Displays an error page (e.g. 404 Not found).
| array | $params Parameters (code, name, and message) public |
Definition at line 69 of file error.php.
References Object::_stop(), and stderr().
Referenced by __construct(), and error404().
| ErrorHandler::error404 | ( | $ | params | ) |
Convenience method to display a 404 page.
| array | $params Parameters for controller public |
Definition at line 143 of file error.php.
References $url, __(), _outputMessage(), error404(), name(), and Router::normalize().
| ErrorHandler::error404 | ( | $ | params | ) |
Convenience method to display a 404 page.
| array | $params Parameters (url, message) public |
Definition at line 80 of file error.php.
References $url, __(), Object::_stop(), error(), and name().
Referenced by __construct(), error(), and error404().
| ErrorHandler::missingAction | ( | $ | params | ) |
Renders the Missing Action web page.
| array | $params Parameters for controller public |
Definition at line 182 of file error.php.
References __(), _outputMessage(), and missingAction().
| ErrorHandler::missingAction | ( | $ | params | ) |
Renders the Missing Action web page.
| array | $params Parameters (action, className) public |
Definition at line 105 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingAction().
| ErrorHandler::missingComponentClass | ( | $ | params | ) |
Renders the Missing Component class web page.
| array | $params Parameters for controller public |
Definition at line 341 of file error.php.
References __(), _outputMessage(), and missingComponentClass().
| ErrorHandler::missingComponentClass | ( | $ | params | ) |
Renders the Missing Component class web page.
| array | $params Parameters (file, component) public |
Definition at line 214 of file error.php.
References __(), Object::_stop(), camelize(), and stderr().
Referenced by missingComponentClass().
| ErrorHandler::missingComponentFile | ( | $ | params | ) |
Renders the Missing Component file web page.
| array | $params Parameters for controller public |
Definition at line 324 of file error.php.
References __(), _outputMessage(), and missingComponentFile().
| ErrorHandler::missingComponentFile | ( | $ | params | ) |
Renders the Missing Component file web page.
| array | $params Parameters (file, component) public |
Definition at line 203 of file error.php.
References __(), Object::_stop(), camelize(), and stderr().
Referenced by missingComponentFile().
| ErrorHandler::missingConnection | ( | $ | params | ) |
Renders the Database Connection web page.
| array | $params Parameters for controller public |
Definition at line 277 of file error.php.
References __(), _outputMessage(), and missingConnection().
| ErrorHandler::missingConnection | ( | $ | params | ) |
Renders the Database Connection web page.
| array | $params Parameters public |
Definition at line 170 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingConnection().
| ErrorHandler::missingController | ( | $ | params | ) |
Renders the Missing Controller web page.
| array | $params Parameters for controller public |
Definition at line 165 of file error.php.
References __(), _outputMessage(), and missingController().
| ErrorHandler::missingController | ( | $ | params | ) |
Renders the Missing Controller web page.
| array | $params Parameters (className) public |
Definition at line 93 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingController().
| ErrorHandler::missingDatabase | ( | $ | params = array() |
) |
Renders the Missing Database web page.
| array | $params Parameters for controller public |
Definition at line 232 of file error.php.
References __(), and _outputMessage().
| ErrorHandler::missingDatabase | ( | $ | params = array() |
) |
Renders the Missing Database web page.
| array | $params Parameters public |
Definition at line 138 of file error.php.
References __(), Object::_stop(), and stderr().
| ErrorHandler::missingHelperClass | ( | $ | params | ) |
Renders the Missing Helper class web page.
| array | $params Parameters for controller public |
Definition at line 308 of file error.php.
References __(), _outputMessage(), camelize(), and missingHelperClass().
| ErrorHandler::missingHelperClass | ( | $ | params | ) |
Renders the Missing Helper class web page.
| array | $params Parameters (file, helper) public |
Definition at line 192 of file error.php.
References __(), Object::_stop(), camelize(), and stderr().
Referenced by missingHelperClass().
| ErrorHandler::missingHelperFile | ( | $ | params | ) |
Renders the Missing Helper file web page.
| array | $params Parameters for controller public |
Definition at line 292 of file error.php.
References __(), _outputMessage(), camelize(), and missingHelperFile().
| ErrorHandler::missingHelperFile | ( | $ | params | ) |
Renders the Missing Helper file web page.
| array | $params Parameters (file, helper) public |
Definition at line 181 of file error.php.
References __(), Object::_stop(), camelize(), and stderr().
Referenced by missingHelperFile().
| ErrorHandler::missingLayout | ( | $ | params | ) |
Renders the Missing Layout web page.
| array | $params Parameters for controller public |
Definition at line 261 of file error.php.
References __(), _outputMessage(), and missingLayout().
| ErrorHandler::missingLayout | ( | $ | params | ) |
Renders the Missing Layout web page.
| array | $params Parameters (file) public |
Definition at line 159 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingLayout().
| ErrorHandler::missingModel | ( | $ | params | ) |
Renders the Missing Model class web page.
| unknown_type | $params Parameters for controller public |
Definition at line 358 of file error.php.
References __(), _outputMessage(), and missingModel().
| ErrorHandler::missingModel | ( | $ | params | ) |
Renders the Missing Model class web page.
| array | $params Parameters (className) public |
Definition at line 225 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingModel().
| ErrorHandler::missingTable | ( | $ | params | ) |
Renders the Missing Table web page.
| array | $params Parameters for controller public |
Definition at line 216 of file error.php.
References __(), _outputMessage(), and missingTable().
| ErrorHandler::missingTable | ( | $ | params | ) |
Renders the Missing Table web page.
| array | $params Parameters (table, className) public |
Definition at line 127 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingTable().
| ErrorHandler::missingView | ( | $ | params | ) |
Renders the Missing View web page.
| array | $params Parameters for controller public |
Definition at line 244 of file error.php.
References __(), _outputMessage(), and missingView().
| ErrorHandler::missingView | ( | $ | params | ) |
Renders the Missing View web page.
| array | $params Parameters (file, action, className) public |
Definition at line 148 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by missingView().
| ErrorHandler::privateAction | ( | $ | params | ) |
Renders the Private Action web page.
| array | $params Parameters for controller public |
Definition at line 200 of file error.php.
References __(), _outputMessage(), and privateAction().
| ErrorHandler::privateAction | ( | $ | params | ) |
Renders the Private Action web page.
| array | $params Parameters (action, className) public |
Definition at line 116 of file error.php.
References __(), Object::_stop(), and stderr().
Referenced by privateAction().
| ErrorHandler::stderr | ( | $ | string | ) |
Outputs to the stderr filehandle.
| string | $string Error text to output. public |
Definition at line 250 of file error.php.
Referenced by __construct(), error(), missingAction(), missingComponentClass(), missingComponentFile(), missingConnection(), missingController(), missingDatabase(), missingHelperClass(), missingHelperFile(), missingLayout(), missingModel(), missingTable(), missingView(), and privateAction().
| ErrorHandler::stdout | ( | $ | string, | |
| $ | newline = true | |||
| ) |
Outputs to the stdout filehandle.
| string | $string String to output. | |
| boolean | $newline If true, the outputs gets an added newline. public |
Definition at line 237 of file error.php.
Referenced by __construct().
1.4.7