Static Public Member Functions |
static | get () |
static | getInstance () |
static | set ($my_instance) |
Protected Member Functions |
| fetchData ($data=null) |
Constructor & Destructor Documentation
__construct |
( |
|
$data = null | ) |
|
pass array of config entries in field => value pairs to circumvent fetching from database
- Parameters
-
Member Function Documentation
magic method for dynamic properties
magic method for dynamic properties
magic method for dynamic properties
create |
( |
|
$field, |
|
|
|
$data = array() |
|
) |
| |
creates a new config entry in database
- Parameters
-
string | name of entry |
array | data to insert as assoc array |
- Exceptions
-
- Returns
- Ambigous <NULL, ConfigEntry>
delete config entry from database
- Parameters
-
- Exceptions
-
- Returns
- integer number of deleted rows
Reimplemented in UserConfig.
export all global config entries into global namespace
fetchData |
( |
|
$data = null | ) |
|
|
protected |
fetch config data from table config pass array to override database access
- Parameters
-
Reimplemented in UserConfig.
returns singleton instance
- Returns
- Config
getFields |
( |
|
$range = null , |
|
|
|
$section = null , |
|
|
|
$name = null |
|
) |
| |
returns a list of config entry names, filtered by given params
- Parameters
-
string | filter by range: global or user |
string | filter by section |
string | filter by part of name |
- Returns
- array
returns metadata for config entry
- Parameters
-
- Returns
- array
returns value of config entry for compatibility reasons an existing variable in global namespace with the same name is also returned
- Parameters
-
- Returns
- Ambigous
Reimplemented in UserConfig.
offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
ArrayAccess: unset the value at the given offset (not applicable)
static set |
( |
|
$my_instance | ) |
|
|
static |
use to set singleton instance for testing or to unset by passing null
- Parameters
-
setValue |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
set config entry to given value, but don't store it in database
- Parameters
-
string | $field | |
unknown_type | $value | |
- Returns
Reimplemented in UserConfig.
store new value for existing config entry in database posts notification ConfigValueChanged if entry is changed
- Parameters
-
- Exceptions
-
- Returns
- boolean
Reimplemented in UserConfig.
Field Documentation
The documentation for this class was generated from the following file: