Lines Matching refs:_cache

542   var $_cache = array();  variable in pfcContainer
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());
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];
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'];
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());
719 $this->_cache = array();
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]);