![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
| __construct (XoopsDatabase $db) | |
| createConfig () | |
| getConfig ($id, $withoptions=false) | |
| insertConfig (XoopsConfigItem $config) | |
| deleteConfig (XoopsConfigItem $config) | |
| getConfigs (CriteriaElement $criteria=null, $id_as_key=false, $with_options=false) | |
| getConfigCount (CriteriaElement $criteria=null) | |
| & | getConfigsByCat ($category, $module=0) |
| createConfigOption () | |
| getConfigOption ($id) | |
| getConfigOptions (CriteriaElement $criteria=null, $id_as_key=false) | |
| getConfigOptionsCount (CriteriaElement $criteria=null) | |
| getConfigList ($conf_modid, $conf_catid=0) | |
| deleteConfigOption (&$criteria) | |
Data Fields | |
| $_cHandler | |
| $_oHandler | |
| $_cachedConfigs = array() | |
XOOPS configuration handling class. This class acts as an interface for handling general configurations of XOOPS and its modules.
| __construct | ( | XoopsDatabase | $db | ) |
Constructor
| XoopsDatabase | $db | reference to database object |
| createConfig | ( | ) |
| createConfigOption | ( | ) |
Make a new XoopsConfigOption
| deleteConfig | ( | XoopsConfigItem | $config | ) |
Delete a config from the database
| XoopsConfigItem | $config | reference to a XoopsConfigItem |

| deleteConfigOption | ( | & | $criteria | ) |
| getConfig | ( | $id, | |
$withoptions = false |
|||
| ) |
Get a config
| int | $id | ID of the config |
| bool | $withoptions | load the config's options now? |
XoopsConfig 
| getConfigCount | ( | CriteriaElement | $criteria = null | ) |
| getConfigList | ( | $conf_modid, | |
$conf_catid = 0 |
|||
| ) |
Get a list of configs
| int | $conf_modid | ID of the modules |
| int | $conf_catid | ID of the category |
| getConfigOption | ( | $id | ) |
Get a XoopsConfigOption
| int | $id | ID of the config option |
| getConfigOptions | ( | CriteriaElement | $criteria = null, |
$id_as_key = false |
|||
| ) |
Get one or more XoopsConfigOptions
| CriteriaElement | $criteria | CriteriaElement |
| bool | $id_as_key | Use IDs as keys in the array? |
XoopsConfigOptions 
| getConfigOptionsCount | ( | CriteriaElement | $criteria = null | ) |
Count some XoopsConfigOptions
| CriteriaElement | $criteria | CriteriaElement |
XoopsConfigOptions matching $criteria | getConfigs | ( | CriteriaElement | $criteria = null, |
$id_as_key = false, |
|||
$with_options = false |
|||
| ) |
get one or more Configs
| CriteriaElement | $criteria | CriteriaElement |
| bool | $id_as_key | Use the configs' ID as keys? |
| bool | $with_options | get the options now? |
XoopsConfigItem objects 
| & getConfigsByCat | ( | $category, | |
$module = 0 |
|||
| ) |
Get configs from a certain category
| int | $category | ID of a category |
| int | $module | ID of a module |
XoopsConfigs 
| insertConfig | ( | XoopsConfigItem | $config | ) |
insert a new config in the database
| XoopsConfigItem | $config | reference to the XoopsConfigItem |
| $_cachedConfigs = array() |
| $_cHandler |
| $_oHandler |