[Phpfreechat-svn] SF.net SVN: phpfreechat: [1089] trunk/src/pfccontainer.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-08-06 15:18:50
|
Revision: 1089 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1089&view=rev Author: kerphi Date: 2007-08-06 08:18:53 -0700 (Mon, 06 Aug 2007) Log Message: ----------- Oups the incMeta code was duplicated Modified Paths: -------------- trunk/src/pfccontainer.class.php Modified: trunk/src/pfccontainer.class.php =================================================================== --- trunk/src/pfccontainer.class.php 2007-08-06 14:52:30 UTC (rev 1088) +++ trunk/src/pfccontainer.class.php 2007-08-06 15:18:53 UTC (rev 1089) @@ -668,33 +668,6 @@ return $ret; } - - function incMeta($group, $subgroup, $leaf) - { - $ret = $this->_container->incMeta($group, $subgroup, $leaf); - - if ($this->_usememorycache) - { - // store the modifications in the cache - if (isset($this->_cache[$group]['value']) && - !in_array($subgroup, $this->_cache[$group]['value'])) - { - $this->_cache[$group]['value'][] = $subgroup; - $this->_cache[$group]['timestamp'][] = time(); - } - if (isset($this->_cache[$group]['childs'][$subgroup]['value']) && - !in_array($leaf, $this->_cache[$group]['childs'][$subgroup]['value'])) - { - $this->_cache[$group]['childs'][$subgroup]['value'][] = $leaf; - $this->_cache[$group]['childs'][$subgroup]['timestamp'][] = time(); - } - $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['value'] = array($leafvalue); - $this->_cache[$group]['childs'][$subgroup]['childs'][$leaf]['timestamp'] = array(time()); - } - - return $ret; - } - /** * Increment a counter identified by the following path : group / subgroup / leaf * Notice: this step must be atomic in order to avoid multithread problem (don't forget to use locking features) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |