XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
createConfig () | |
createConfigOption () | |
deleteConfig (XoopsConfigItem $config) | |
getConfig ($id, $withoptions=false) | |
getConfigCount (CriteriaElement $criteria=null) | |
getConfigList ($conf_modid, $conf_catid=0) | |
getConfigOption ($id) | |
getConfigOptions (CriteriaElement $criteria=null, $id_as_key=false) | |
getConfigOptionsCount (CriteriaElement $criteria=null) | |
getConfigs (CriteriaElement $criteria=null, $id_as_key=false) | |
getConfigsByCat ($category, $module=0) | |
getConfigsByModule ($module=0) | |
insertConfig (XoopsConfigItem $config) | |
Public Member Functions inherited from Xoops\Core\Kernel\XoopsObjectHandler | |
create () | |
delete (XoopsObject $object, $force=true) | |
get ($int_id) | |
insert (XoopsObject $object, $force=true) | |
Private Attributes | |
$_cachedConfigs = array() | |
$_cHandler | |
$_oHandler | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Core\Kernel\XoopsObjectHandler | |
$db2 | |
Protected Member Functions inherited from Xoops\Core\Kernel\XoopsObjectHandler | |
__construct (Connection $db=null) | |
XOOPS configuration handling class. This class acts as an interface for handling general configurations of XOOPS and its modules.
Definition at line 35 of file config.php.
XoopsConfigHandler::__construct | ( | ) |
Constructor
Definition at line 65 of file config.php.
References Xoops\getInstance().
XoopsConfigHandler::createConfig | ( | ) |
Create a config
Definition at line 78 of file config.php.
XoopsConfigHandler::createConfigOption | ( | ) |
Make a new XoopsConfigOption
Definition at line 254 of file config.php.
XoopsConfigHandler::deleteConfig | ( | XoopsConfigItem | $config | ) |
Delete a config from the database
XoopsConfigItem | $config | XoopsConfigItem |
Definition at line 138 of file config.php.
References $count, $i, $options, getConfigOptions(), XoopsConfigItem\getConfOptions(), and Xoops\Core\Kernel\XoopsObject\getVar().
XoopsConfigHandler::getConfig | ( | $id, | |
$withoptions = false |
|||
) |
Get a config
int | $id | ID of the config |
bool | $withoptions | load the config's options now? |
Definition at line 92 of file config.php.
References $config, $id, and getConfigOptions().
XoopsConfigHandler::getConfigCount | ( | CriteriaElement | $criteria = null | ) |
Count some configs
CriteriaElement | null | $criteria | CriteriaElement |
Definition at line 191 of file config.php.
References $criteria.
XoopsConfigHandler::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 |
Definition at line 306 of file config.php.
XoopsConfigHandler::getConfigOption | ( | $id | ) |
Get a XoopsConfigOption
int | $id | ID of the config option |
Definition at line 267 of file config.php.
References $id.
XoopsConfigHandler::getConfigOptions | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
Get one or more XoopsConfigOptions
CriteriaElement | null | $criteria | CriteriaElement |
bool | $id_as_key | Use IDs as keys in the array? |
Definition at line 281 of file config.php.
References $criteria.
Referenced by deleteConfig(), and getConfig().
XoopsConfigHandler::getConfigOptionsCount | ( | CriteriaElement | $criteria = null | ) |
Count some XoopsConfigOptions
CriteriaElement | null | $criteria | CriteriaElement |
Definition at line 293 of file config.php.
References $criteria.
XoopsConfigHandler::getConfigs | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
get one or more Configs
CriteriaElement | null | $criteria | CriteriaElement |
bool | $id_as_key | Use the configs' ID as keys? |
Definition at line 168 of file config.php.
References $criteria, and $criteria2.
Referenced by getConfigsByCat(), and getConfigsByModule().
XoopsConfigHandler::getConfigsByCat | ( | $category, | |
$module = 0 |
|||
) |
Get configs from a certain category
int | $category | ID of a category |
int | $module | ID of a module |
Definition at line 227 of file config.php.
References $_cachedConfigs, $configs, $criteria, $i, $module, and getConfigs().
XoopsConfigHandler::getConfigsByModule | ( | $module = 0 | ) |
Get configs from a certain module
int | $module | ID of a module |
Definition at line 203 of file config.php.
References $_cachedConfigs, $configs, $criteria, $i, $module, and getConfigs().
XoopsConfigHandler::insertConfig | ( | XoopsConfigItem | $config | ) |
insert a new config in the database
XoopsConfigItem | $config | XoopsConfigItem |
Definition at line 109 of file config.php.
References $count, $i, $msg, $options, XoopsConfigItem\getConfOptions(), Xoops\Core\Kernel\XoopsObject\getVar(), and Xoops\Core\Kernel\XoopsObject\setErrors().
|
private |
Definition at line 60 of file config.php.
Referenced by getConfigsByCat(), and getConfigsByModule().
|
private |
Definition at line 43 of file config.php.
|
private |
Definition at line 51 of file config.php.