80 $instance = $this->_cHandler->create();
96 if ($withoptions ==
true) {
111 if (!$this->_cHandler->insert($config)) {
116 $conf_id = $config->
getVar(
'conf_id');
119 if (!$this->_oHandler->insert(
$options[
$i])) {
125 if (!empty($this->_cachedConfigs[$config->
getVar(
'conf_modid')][$config->
getVar(
'conf_catid')])) {
126 unset($this->_cachedConfigs[$config->
getVar(
'conf_modid')][$config->
getVar(
'conf_catid')]);
140 if (!$this->_cHandler->delete($config)) {
154 if (!empty($this->_cachedConfigs[$config->
getVar(
'conf_modid')][$config->
getVar(
'conf_catid')])) {
155 unset($this->_cachedConfigs[$config->
getVar(
'conf_modid')][$config->
getVar(
'conf_catid')]);
181 return $this->_cHandler->getObjects(
$criteria2, $id_as_key);
193 return $this->_cHandler->getCount(
$criteria);
210 $ret[
$configs[
$i]->getVar(
'conf_name')] = $configs[
$i]->getConfValueForOutput();
235 if (!empty($category)) {
241 $ret[
$configs[
$i]->getVar(
'conf_name')] = $configs[
$i]->getConfValueForOutput();
256 $inst = $this->_oHandler->create();
269 $inst = $this->_oHandler->get(
$id);
283 return $this->_oHandler->getObjects(
$criteria, $id_as_key);
295 return $this->_oHandler->getCount(
$criteria);
308 if (!empty($this->_cachedConfigs[$conf_modid][$conf_catid])) {
309 return $this->_cachedConfigs[$conf_modid][$conf_catid];
312 if (empty($conf_catid)) {
320 for (
$i = 0;
$i < $confcount; ++
$i) {
321 $ret[
$configs[
$i]->getVar(
'conf_name')] = $configs[
$i]->getConfValueForOutput();
323 $this->_cachedConfigs[$conf_modid][$conf_catid] = $ret;
getConfigs(CriteriaElement $criteria=null, $id_as_key=false)
insertConfig(XoopsConfigItem $config)
getVar($key, $format= 's')
getConfigCount(CriteriaElement $criteria=null)
getConfig($id, $withoptions=false)
getConfigList($conf_modid, $conf_catid=0)
getConfigsByModule($module=0)
deleteConfig(XoopsConfigItem $config)
if(!is_object($module)||!$module->getVar('isactive')) $msg
getConfigsByCat($category, $module=0)
getConfigOptionsCount(CriteriaElement $criteria=null)
getConfigOptions(CriteriaElement $criteria=null, $id_as_key=false)