Lines Matching refs:subgroup

558   function setMeta($group, $subgroup, $leaf, $leafvalue = NULL)  argument
560 $ret = $this->_container->setMeta($group, $subgroup, $leaf, $leafvalue);
566 !in_array($subgroup, $this->_cache[$group]['value']))
568 $this->_cache[$group]['value'][] = $subgroup;
571 if (isset($this->_cache[$group]['childs'][$subgroup]['value']) &&
572 !in_array($leaf, $this->_cache[$group]['childs'][$subgroup]['value']))
574 $this->_cache[$group]['childs'][$subgroup]['value'][] = $leaf;
575 $this->_cache[$group]['childs'][$subgroup]['timestamp'][] = time();
577 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value'] = array($leafvalue);
578 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp'] = array(time());
593 function getMeta($group, $subgroup = null, $leaf = null, $withleafvalue = false) argument
602 if ($subgroup == null &&
609 isset($this->_cache[$group]['childs'][$subgroup]['value']))
612 $ret = $this->_cache[$group]['childs'][$subgroup];
618 if (isset($this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value']))
621 $ret = $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf];
626 if (isset($this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp']))
629 $ret = $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf];
644 $ret = $this->_container->getMeta($group, $subgroup, $leaf, $withleafvalue);
649 if ($subgroup == null)
656 $this->_cache[$group]['childs'][$subgroup]['value'] = $ret['value'];
657 $this->_cache[$group]['childs'][$subgroup]['timestamp'] = $ret['timestamp'];
662 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value'] = $ret['value'];
664 unset($this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value']);
665 … $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp'] = $ret['timestamp'];
680 function incMeta($group, $subgroup, $leaf) argument
682 $ret = $this->_container->incMeta($group, $subgroup, $leaf);
688 !in_array($subgroup, $this->_cache[$group]['value']))
690 $this->_cache[$group]['value'][] = $subgroup;
693 if (isset($this->_cache[$group]['childs'][$subgroup]['value']) &&
694 !in_array($leaf, $this->_cache[$group]['childs'][$subgroup]['value']))
696 $this->_cache[$group]['childs'][$subgroup]['value'][] = $leaf;
697 $this->_cache[$group]['childs'][$subgroup]['timestamp'][] = time();
699 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value'] = $ret['value'];
700 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp'] = array(time());
713 function rmMeta($group, $subgroup = null, $leaf = null) argument
720 else if ($subgroup == null)
726 $i = array_search($subgroup,$this->_cache[$group]['value']);
733 unset($this->_cache[$group]['childs'][$subgroup]);
737 if (isset($this->_cache[$group]['childs'][$subgroup]['value']))
739 $i = array_search($leaf,$this->_cache[$group]['childs'][$subgroup]['value']);
742 unset($this->_cache[$group]['childs'][$subgroup]['value'][$i]);
743 unset($this->_cache[$group]['childs'][$subgroup]['timestamp'][$i]);
746 unset($this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]);
750 return $this->_container->rmMeta($group, $subgroup, $leaf);