Class Rest\Server Is the front controller for mapping URL to controllers and dealing with Request/Response and Headers Made with Restful webservices in mind.
By Diogo Souza da Silva manifesto@manifesto.blog.br
__construct(string $query = null) : \Rest\Rest\Server
stringOptional query to be treat as the URL
\Rest\Rest\Server$rest;
setParameter(mixed $key, mixed $value) : \Rest\Rest\Server
mixedThe identifier of the parameter
mixedThe content of the parameter
\Rest\Rest\Server$this
getParameters() : mixed
mixed
getParameter(mixed $key) : mixed
mixedThe parameter identifier
mixed
addMap(string $method, string $uri, string $class, $accept = null) : \Rest\Rest\Server
stringThe method to be associated
stringThe URL to be accossiated
stringThe name of the class to be called, it must implement RestAction
\Rest\Rest\Server
setAccept(array $mimes) : \Rest\Rest\Server
array
\Rest\Rest\Server
setQuery(string $value) : \Rest\Rest\Server
stringThe url
\Rest\Rest\Server$this
getQuery(mixed $k = null) : string
mixeduri part
string
getBaseUrl() : string
string
getResponse() : \Rest\Rest\Response
\Rest\Rest\Response
getRequest() : \Rest\Rest\Request
\Rest\Rest\Request
getAuthenticator() : \Rest\Rest\Authenticator
\Rest\Rest\Authenticator
getMap(string $method, string $uri, $ext = false) : string
string
string
string
setMatch($map) : \Rest\Rest\Server
\Rest\Rest\Server
getMatch() : string
string
lastClass() : string
string
execute($echo = true) : \Rest\Rest\Server
\Rest\Rest\Server
call($object, $method)
response
request
authenticator
baseUrl
query
map
matched
params
stack
acceptMimes