This object stores the configuration values in read access only

uses implements the singleton pattern in private mode
package OWR
used_by \OWR\CLI\Controller
used_by \OWR\Includes\Themes\OriginalDark\Theme
used_by \OWR\Includes\Themes\Original\Theme
used_by \OWR\REST\Controller
used_by \OWR\REST\Request
used_by \OWR\Controller
used_by \OWR\View\Utilities
used_by \OWR\View\Block

 Methods

Cloning is denied This function can NOT be overloaded

__clone() 
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\PrivateSingleton::__clone()

Executed when trying to get values without calling the appropriate function

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

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
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\PrivateSingleton::__set()

Parameters

$var

string

the var name

$value

mixed

the value to assign to $var

Returns

mixedthe value if succeed of false

Executed when deserializing this object

__wakeUp() 
access public
author Pierre-Alain Mignot

Getter

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

Parameters

$var

string

the var name

Returns

mixedthe desired value if exists or null

Returns the current controller This function returns an instance of OWR\CLI\Controller if we are in CLI mode Else OWR\Rest\Controller if we are in rest api Else returns OWR\Controller

getController() : mixed
access public

Returns

mixedthe Controller instance

Instance getter This function can NOT be overloaded

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

Returns

mixedthe instance

Returns the url following the directive uriStyle

makeURI(string $do, string $params, boolean $escape) : string
access public

Parameters

$do

string

the action

$params

string

additional parameters

$escape

boolean

must-we use '' instead of '&' ?

Returns

stringthe url

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) 
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\PrivateSingleton::register()

Parameters

$instance

mixed

the instance to register

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

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

Parameters

$var

string

the var name

$value

mixed

the value to assign to $var

Returns

mixedthe value if succeed of false

Constructor

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

Parameters

$datas

array

the config values

 Properties

 

the stored values

$_datas : array
Inherited
access protected
inherited_from \OWR\PrivateSingleton::$$_datas
 

store instancied objects

$_instances : array
Inherited
access private
static
inherited_from \OWR\PrivateSingleton::$$_instances