Static Public Member Functions |
static | get ($user_id) |
static | set ($user_id, $my_instance) |
static | get () |
static | getInstance () |
static | set ($my_instance) |
Protected Member Functions |
| fetchData ($data=null) |
Constructor & Destructor Documentation
__construct |
( |
|
$user_id = null , |
|
|
|
$data = null |
|
) |
| |
passing null as first param is for compatibility and should be considered deprecated. passing data array as second param only for testing
- Parameters
-
string | $user_id | |
array | $data | |
Member Function Documentation
delete config entry from database
- Parameters
-
- Exceptions
-
- Returns
- integer number of deleted rows
Reimplemented from Config.
fetchData |
( |
|
$data = null | ) |
|
|
protected |
fetch config data from table config pass array to override database access
- Parameters
-
Reimplemented from Config.
returns cached instance for given user_id creates new objects if needed
- Parameters
-
- Returns
- UserConfig
returns the user id
- Returns
- string
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 from Config.
static set |
( |
|
$user_id, |
|
|
|
$my_instance |
|
) |
| |
|
static |
set cached instance for given user_id use for testing or to unset cached instance by passing null as second param
- Parameters
-
kept for compatibility, should be private
- Deprecated:
- 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 from Config.
store new value for existing config entry in database posts notification ConfigValueChanged if entry is changed
- Parameters
-
- Exceptions
-
- Returns
- boolean
Reimplemented from Config.
old style usage with $user_id, $key as params still works but is deprecated
- Parameters
-
- Returns
- bool
The documentation for this class was generated from the following file: