Method |
Description |
|
__call ( string $name, array $params ) : mixed |
Handles calls to class methods. |
|
__construct ( ) |
Constructor. |
|
_error ( object $e ) |
Sends an HTTP 500 response for any errors. |
|
_etag ( string $id, string $type = 'strong' ) |
Handles ETag HTTP caching. |
|
_halt ( integer $code = 200, string $message = '' ) |
Stops processing and returns a given response. |
|
_json ( mixed $data, integer $code = 200, boolean $encode = true, string $charset = 'utf-8', integer $option ) |
Sends a JSON response. |
|
_jsonp ( mixed $data, string $param = 'jsonp', integer $code = 200, boolean $encode = true, string $charset = 'utf-8', integer $option ) |
Sends a JSONP response. |
|
_lastModified ( integer $time ) |
Handles last modified HTTP caching. |
|
_notFound ( ) |
Sends an HTTP 404 response when a URL is not found. |
|
_redirect ( string $url, integer $code = 303 ) |
Redirects the current request to another URL. |
|
_render ( string $file, array $data = null, string $key = null ) |
Renders a template. |
|
_route ( string $pattern, callback $callback, boolean $pass_route = false ) |
Routes a URL to a callback function. |
|
_start ( ) |
Starts the framework. |
|
_stop ( integer $code = 200 ) |
Stops the framework and outputs the current response. |
|
after ( string $name, callback $callback ) |
Adds a post-filter to a method. |
|
before ( string $name, callback $callback ) |
Adds a pre-filter to a method. |
|
clear ( string $key = null ) |
Unsets a variable. If no key is passed in, clear all variables. |
|
get ( string $key = null ) : mixed |
Gets a variable. |
|
handleError ( integer $errno, integer $errstr, integer $errfile, integer $errline ) |
Custom error handler. Converts errors into exceptions. |
|
handleErrors ( boolean $enabled ) |
Enables/disables custom error handling. |
|
handleException ( object $e ) |
Custom exception handler. Logs exceptions. |
|
has ( string $key ) : boolean |
Checks if a variable has been set. |
|
init ( ) |
Initializes the framework. |
|
map ( string $name, callback $callback ) |
Maps a callback to a framework method. |
|
path ( string $dir ) |
Adds a path for class autoloading. |
|
register ( string $name, string $class, array $params = [], callback $callback = null ) |
Registers a class to a framework method. |
|
set ( mixed $key, string $value = null ) |
Sets a variable. |
|