|
| | __construct ($user_id=null, $data=null) |
| |
| | setUserId ($user_id) |
| |
| | getUserId () |
| |
| | getValue ($field) |
| |
| | setValue ($field, $value) |
| |
| | unsetValue ($field) |
| |
| | store ($field, $value) |
| |
| | delete ($field) |
| |
| | __construct ($data=null) |
| |
| | extractAllGlobal () |
| |
| | getFields ($range=null, $section=null, $name=null) |
| |
| | getMetadata ($field) |
| |
| | getValue ($field) |
| |
| | setValue ($field, $value) |
| |
| | getIterator () |
| |
| | __get ($field) |
| |
| | __set ($field, $value) |
| |
| | __isset ($field) |
| |
| | offsetExists ($offset) |
| |
| | offsetGet ($offset) |
| |
| | offsetSet ($offset, $value) |
| |
| | offsetUnset ($offset) |
| |
| | count () |
| |
| | store ($field, $data) |
| |
| | create ($field, $data=array()) |
| |
| | delete ($field) |
| |
◆ __construct()
| __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 | |
◆ delete()
- See also
- lib/classes/Config::delete()
◆ fetchData()
| fetchData |
( |
|
$data = null | ) |
|
|
protected |
- See also
- lib/classes/Config::fetchData()
◆ get()
returns cached instance for given user_id creates new objects if needed
- Parameters
-
- Returns
- UserConfig
◆ getUserId()
returns the user id
- Returns
- string
◆ getValue()
old style usage with $user_id, $key as params still works but is deprecated
- See also
- lib/classes/Config::getValue()
◆ set()
| 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
-
◆ setUserId()
kept for compatibility, should be private
- Deprecated:
- Parameters
-
◆ setValue()
| setValue |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
old style usage with $value, $user_id, $key as params still works but is deprecated
- See also
- lib/classes/Config::setValue()
◆ store()
- See also
- lib/classes/Config::store()
◆ unsetValue()
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: