This object is used to deal with objects instead of arrays

package OWR
used_by \OWR\DAO
used_by \OWR\Model\Users

 Methods

Constructor

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

Parameters

$datas

array

the values to convert

Getter of unexisting var

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

Parameters

$var

string

the var name

Returns

null

Setter of unexisting var

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

Parameters

$var

string

the var name

$value

mixed

the value to set

Returns

booleantrue

Executed when this object is used as a string

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

Returns

stringthis object serialized

Returns public properties of current object as an associative array

asArray() : array
access public

Returns

arraythe result

Getter Can be used to get multidimensional values

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

Parameters

$var

string

the var name

Returns

mixedthe var if exists, or null

Abstract function to sanitize

sanitize(mixed $datas) : mixed
access public
abstract
author Pierre-Alain Mignot

Parameters

$datas

mixed

the datas to sanitize

Returns

mixed?

Setter Can be used to get multidimensional values

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

Returns public properties of object passed by parameter as an associative array or return an array of multidimensional array

toArray(mixed $object) : array
Static
access public
static

Parameters

$object

mixed

the object to convert

Returns

arraythe result

Getter Can be used to get multidimensional values

_setDatas(array $datas) : boolean
access public
author Pierre-Alain Mignot

Parameters

$datas

array

the datas to set to $this

Returns

booleantrue