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
string
Optional query to be treat as the URL
\Rest\Rest\Server
$rest;
setParameter(mixed $key, mixed $value) : \Rest\Rest\Server
mixed
The identifier of the parameter
mixed
The content of the parameter
\Rest\Rest\Server
$this
getParameters() : mixed
mixed
getParameter(mixed $key) : mixed
mixed
The parameter identifier
mixed
addMap(string $method, string $uri, string $class, $accept = null) : \Rest\Rest\Server
string
The method to be associated
string
The URL to be accossiated
string
The 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
string
The url
\Rest\Rest\Server
$this
getQuery(mixed $k = null) : string
mixed
uri 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