Méthode |
Description |
|
RestLog ( ) : object |
Return an instance of the log model |
|
View ( boolean $object = true, string $ext = null ) : mixed |
Returns either string or reference to active View object |
|
__call ( string $name, array $arguments ) |
Catch & fire callbacks. You can map callbacks to different places
using the value parts in $this->settings['callbacks']. |
|
__construct ( ComponentCollection $collection, $settings = [] ) |
|
|
abort ( $params = [], $data = [] ) |
Could be called by e.g. ->redirect to dump
an error & stop further execution. |
|
beforeRedirect ( Controller $Controller, $url, $status = null, $exit = true ) |
|
|
beforeRender ( Controller $Controller ) : |
Collects viewVars, reformats, and makes them available as
viewVar: response for use in REST serialization |
|
controllers ( boolean $cached = true ) : array |
Returns a list of Controllers where Rest component has been activated
uses Cache::read & Cache::write by default to tackle performance
issues. |
|
credentials ( $set = false ) : |
Sets or returns credentials as found in the 'Authorization' header
sent by the client. |
|
debug ( $format, $arg1 = null, $arg2 = null ) |
|
|
error ( $format, $arg1 = null, $arg2 = null ) |
|
|
getFeedBack ( boolean $format = false ) : array |
Returns (optionally) formatted feedback. |
|
headers ( $ext = null ) : |
Set content-type headers based on extension |
|
info ( $format, $arg1 = null, $arg2 = null ) |
|
|
initialize ( Controller $Controller ) |
|
|
inject ( array $take, array $viewVars ) : array |
Reformats data according to Xpaths in $take |
|
isActive ( ) |
|
|
log ( mixed $key, mixed $val = null, $scope = null ) : boolean |
log(true) writes log to disk. otherwise stores key-value
pairs in memory for later saving. Can also work recursively
by giving an array as the key |
|
numeric ( array $array = [] ) : boolean |
Determines is an array is numerically indexed |
|
ratelimit ( $time, $max ) : |
Works together with Logging to ratelimit incomming requests by
identfield |
|
response ( array $data = [] ) : array |
Get an array of everything that needs to go into the Xml / Json |
|
shutdown ( Controller $Controller ) |
Write the accumulated logentry |
|
startup ( Controller $Controller ) : |
Controls layout & view files |
|
validate ( $format, $arg1 = null, $arg2 = null ) |
|
|
warning ( $format, $arg1 = null, $arg2 = null ) |
|
|