Lines Matching refs:group
558 function setMeta($group, $subgroup, $leaf, $leafvalue = NULL) argument
560 $ret = $this->_container->setMeta($group, $subgroup, $leaf, $leafvalue);
565 if (isset($this->_cache[$group]['value']) &&
566 !in_array($subgroup, $this->_cache[$group]['value']))
568 $this->_cache[$group]['value'][] = $subgroup;
569 $this->_cache[$group]['timestamp'][] = time();
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
603 isset($this->_cache[$group]['value']))
606 $ret = $this->_cache[$group];
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);
651 $this->_cache[$group]['value'] = $ret['value'];
652 $this->_cache[$group]['timestamp'] = $ret['timestamp'];
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);
687 if (isset($this->_cache[$group]['value']) &&
688 !in_array($subgroup, $this->_cache[$group]['value']))
690 $this->_cache[$group]['value'][] = $subgroup;
691 $this->_cache[$group]['timestamp'][] = time();
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
718 if ($group == null)
721 unset($this->_cache[$group]);
724 if (isset($this->_cache[$group]['value']))
726 $i = array_search($subgroup,$this->_cache[$group]['value']);
729 unset($this->_cache[$group]['value'][$i]);
730 unset($this->_cache[$group]['timestamp'][$i]);
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);