Properties

$dependencies

$dependencies : 

Type

$shortcuts

$shortcuts : 

Type

$singleton

$singleton : 

Type

$class_hash

$class_hash : 

Type

$_cache

$_cache : 

Type

$_caching

$_caching : 

Type

$_own

$_own : 

Type

$_shorts

$_shorts : 

Type

$_shorts_loaded

$_shorts_loaded : 

Type

$_class_index

$_class_index : 

Type

Methods

__get()

__get(  $name) 

Parameters

$name

__isset()

__isset(  $name) 

Parameters

$name

__dependencies()

__dependencies() 

__shortcuts()

__shortcuts() 

__destruct()

__destruct() 

inject()

inject(  $strKey,   $strValue) 

Injects an own input parameter with value

Parameters

$strKey
$strValue

get()

get(string  $key, mixed  $default = '',   $owntype = '') : mixed

A shortcut method to request an input variable. Calls the appropriate type-specifc method based on the variable type of $default

Parameters

string $key

Input key, to get to values, deeper in array use ":"

mixed $default

Default variable to return if $key is not set. This also determines the type of data cleaning performed.

$owntype

Returns

mixed

getArray()

getArray(string  $key, string  $type = 'string', string  $max_depth = 10) : array

Clean and fetch an input variable that is an array, for example an array of checkbox IDs. Depending on $type, the appropriate cleaning method will be called on each element.

Parameters

string $key

Input key, to get to values, deeper in array use ":"

string $type

String-based variable type ('int', 'string', etc.)

string $max_depth

Maximum depth to recurse to

Returns

array

exists()

exists(string  $key,   $type = false) : boolean

Checks if $key exists as an input value.

Parameters

string $key

Input key

$type

Returns

boolean

floatvalue()

floatvalue(string  $value) : float

float and double need a special handling, so "0,5" can be correctly interpreted as 0.5 (function floatvalue() )

Parameters

string $value

Input key

Returns

float

decode_entity()

decode_entity(string  $value) : string

Converts a string with html_entity decode to html and decode quotes as well. Usefull for JS

Parameters

string $value

Input key

Returns

string

getCookie()

getCookie(  $key,   $default = '') 

Parameters

$key
$default

getSession()

getSession(  $key,   $default = '') 

Parameters

$key
$default

getEQdkpCookie()

getEQdkpCookie(  $key,   $default = '') 

Parameters

$key
$default

_superglobal()

_superglobal(  $key) 

Get the Superglobal we're using

Parameters

$key

_getType()

_getType(  $default,   $owntype) 

Parameters

$default
$owntype

_getFilter()

_getFilter(  $type) 

Parameters

$type

_convert()

_convert(  $value,   $type) 

Parameters

$value
$type

_options()

_options(  $type) 

Parameters

$type

_get_deep()

_get_deep(array  $keys, string  $default) : mixed

Get an input variable from a superglobal. POST > SESSION > GET if the value which is wanted is deeper in the array.

Parameters

array $keys

Input keys

string $default

Default variable to return if $key is not set

Returns

mixed