This object is sent to the Controller to be executed

uses convert M$ bad chars
package OWR
used_by \OWR\CLI\Controller
used_by \OWR\DAO
used_by \OWR\Model\Objects
used_by \OWR\Model\Objects
used_by \OWR\Model\Users
used_by \OWR\Model\News
used_by \OWR\Model\News\Tags
used_by \OWR\Model\Streams
used_by \OWR\Model\Streams\Groups
used_by \OWR\REST\Request
used_by \OWR\Controller
used_by \OWR\Model
used_by \OWR\DB

 Methods

Constructor

__construct(array $datas, boolean $nodatas) 
access public
author Pierre-Alain Mignot

Parameters

$datas

array

the datas

$nodatas

boolean

if we must NOT get datas from GET/POST if $datas is empty

Getter for unexisting var

__get(string $var) : null
access public
author Pierre-Alain Mignot

Parameters

$var

string

the var name

Returns

null

Called when using this object as a string

__toString() : string
access public
author Pierre-Alain Mignot

Returns

stringthis object serialized

Getter

get(string $var) : mixed
access public
author Pierre-Alain Mignot

Parameters

$var

string

the var name

Returns

mixednull if exists, or the value

Returns the response of a Model call

getResponse() : mixed
Static
access public
static
author Pierre-Alain Mignot

Returns

mixed$response the Model\Response instance

Sanitize function

sanitize(mixed $datas) 
Static
access public
static
author Pierre-Alain Mignot

Parameters

$datas

mixed

the datas to sanitize

Setter

set(string $var, mixed $value) : mixed
access public
author Pierre-Alain Mignot

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) 
Static
access public
static
author Pierre-Alain Mignot

Parameters

$response

\OWR\OWR\Model\Response

the Model\Response instance

Sanitizes and set datas

_setDatas(array $datas) 
access private
author Pierre-Alain Mignot

Parameters

$datas

array

the datas to set

 Properties

 

the Filter instance

$_filter : mixed
access protected
static
 

the Model\Response instance

$_response : mixed
access protected