This object is sent to the Controller to be executed

uses convert M$ bad chars
uses the main class
uses the config object
uses the (un)serializer
package OWR
subpackage Rest

 Methods

Constructor

__construct() 
access public
author Pierre-Alain Mignot

Getter for unexisting var

__get(string $var) : null
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Request::__get()

Parameters

$var

string

the var name

Returns

null

Called when using this object as a string

__toString() : string
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Request::__toString()

Returns

stringthis object serialized

Getter

get(string $var) : mixed
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Request::get()

Parameters

$var

string

the var name

Returns

mixednull if exists, or the value

Returns the HTTP_ACCEPT used to call the api

getHTTPAccept() : string
access public

Returns

stringmethod

Returns the method used to call the api

getMethod() : string
access public

Returns

stringmethod

Returns the response of a Model call

getResponse() : mixed
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Request::getResponse()

Returns

mixed$response the Model\Response instance

Sanitize function

sanitize(mixed $datas) 
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Request::sanitize()

Parameters

$datas

mixed

the datas to sanitize

Setter

set(string $var, mixed $value) : mixed
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Request::set()

Parameters

$var

string

the var name

$value

mixed

the value to assign to $var

Returns

mixedthe value

Sets the response of a Model call

setResponse(\OWR\Model\Response $response) 
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Request::setResponse()

Parameters

$response

\OWR\OWR\Model\Response

the Model\Response instance

Sanitizes and set datas

_setDatas(array $datas) 
Inherited
access private
author Pierre-Alain Mignot
inherited_from \OWR\Request::_setDatas()

Parameters

$datas

array

the datas to set

 Properties

 

the Filter instance

$_filter : mixed
Inherited
access protected
static
inherited_from \OWR\Request::$$_filter
 

the Model\Response instance

$_response : mixed
Inherited
access protected
inherited_from \OWR\Request::$$_response
 

the Content-Type of the request, default as json

$_contentType : string
access private
 

the HTTP-Accept, can be json/html/xml, default as json

$_httpAccept : string
access private
 

the method (PUT|GET|POST|DELETE)

$_method : string
access private