Lines Matching refs:ret

181       $ret = $this->getOnlineNick($chan);
182 if (count($ret['nickid']) == 0)
288 $ret = $this->getMeta("channelid-to-nickid", $this->encode('SERVER'));
289 for($i = 0; $i<count($ret['timestamp']); $i++)
291 $timestamp = $ret['timestamp'][$i];
292 $nickid = $ret['value'][$i];
335 $ret = $this->getMeta("channelid-to-nickid", $this->encode($chan));
336 for($i = 0; $i<count($ret['timestamp']); $i++)
338 $nickid = $ret['value'][$i];
362 $ret = $this->getMeta("channelid-to-nickid",
366 return (count($ret['timestamp']) > 0);
489 $ret = $this->getMeta("nickid-to-metadata", $nickid);
490 foreach($ret["value"] as $k)
499 $ret = $this->getMeta("nickid-to-metadata", $nickid, $key, true);
500 return isset($ret['value'][0]) ? $ret['value'][0] : NULL;
505 $ret = $this->setMeta("nickid-to-metadata", $nickid, $key, $value);
506 return $ret;
511 $ret = $this->getMeta("nickid-to-cmdtoplay", $nickid, $key, true);
512 return $ret['value'];
517 $ret = $this->setMeta("nickid-to-cmdtoplay", $nickid, $key, $value);
518 return $ret;
524 $ret = $this->getMeta("channelid-to-metadata", $this->encode($chan));
525 foreach($ret["value"] as $k)
532 $ret = $this->getMeta("channelid-to-metadata", $this->encode($chan), $key, true);
533 return isset($ret['value'][0]) ? $ret['value'][0] : NULL;
538 $ret = $this->setMeta("channelid-to-metadata", $this->encode($chan), $key, $value);
539 return $ret;
560 $ret = $this->_container->setMeta($group, $subgroup, $leaf, $leafvalue);
581 return $ret;
595 $ret = array('timestamp' => array(),
606 $ret = $this->_cache[$group];
612 $ret = $this->_cache[$group]['childs'][$subgroup];
621 $ret = $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf];
629 $ret = $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf];
637 if (isset($ret['timestamp'])) $ret2['timestamp'] = $ret['timestamp'];
638 if (isset($ret['value'])) $ret2['value'] = $ret['value'];
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'];
665 … $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp'] = $ret['timestamp'];
669 return $ret;
682 $ret = $this->_container->incMeta($group, $subgroup, $leaf);
699 $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value'] = $ret['value'];
703 return $ret;