This class is used to declare public functions

package OWR
subpackage Interfaces

 Methods

Cloning is denied This function can NOT be overloaded

__clone() 
access public
author Pierre-Alain Mignot

Executed when trying to get values without calling the appropriate function

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

Parameters

$var

string

the var name

Returns

mixedthe desired value if exists or null

Executed when trying to set values without calling the appropriate function

__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 if succeed of false

Executed when an object is unserialized We register the new object

__wakeUp() 
access public
author Pierre-Alain Mignot

Getter

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

Parameters

$var

string

the var name

Returns

mixedthe desired value if exists or null

Instance getter This function can NOT be overloaded

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

Returns

mixedthe instance

Register function This function is called when an object is unserialized and is used to register the instance of the object This function can NOT be overloaded

register(mixed $instance) 
Static
access public
static
author Pierre-Alain Mignot

Parameters

$instance

mixed

an instance to register

Setter It will only set value if the var has not already been defined

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 if succeed of false