@@ -477,12 +477,18 @@ discard block |
||
477 | 477 | |
478 | 478 | protected $extraConfigSources = array(); |
479 | 479 | |
480 | + /** |
|
481 | + * @param string $class |
|
482 | + */ |
|
480 | 483 | public function extraConfigSourcesChanged($class) { |
481 | 484 | unset($this->extraConfigSources[$class]); |
482 | 485 | $this->cache->clean("__{$class}"); |
483 | 486 | $this->persistentCache->clean("__{$class}"); |
484 | 487 | } |
485 | 488 | |
489 | + /** |
|
490 | + * @param integer $sourceOptions |
|
491 | + */ |
|
486 | 492 | protected function getUncached($class, $name, $sourceOptions, &$result, $suppress, &$tags) { |
487 | 493 | $tags[] = "__{$class}"; |
488 | 494 | $tags[] = "__{$class}__{$name}"; |
@@ -660,15 +666,6 @@ discard block |
||
660 | 666 | * |
661 | 667 | * @param string $class The class to remove a configuration value from |
662 | 668 | * @param string $name The configuration name |
663 | - * @param mixed $key An optional key to filter against. |
|
664 | - * If referenced config value is an array, only members of that array that match this key will be removed |
|
665 | - * Must also match value if provided to be removed |
|
666 | - * @param mixed $value And optional value to filter against. |
|
667 | - * If referenced config value is an array, only members of that array that match this value will be removed |
|
668 | - * If referenced config value is not an array, value will be removed only if it matches this argument |
|
669 | - * Must also match key if provided and referenced config value is an array to be removed |
|
670 | - * |
|
671 | - * Matching is always by "==", not by "===" |
|
672 | 669 | */ |
673 | 670 | public function remove($class, $name /*,$key = null*/ /*,$value = null*/) { |
674 | 671 | $argc = func_num_args(); |
@@ -748,6 +745,10 @@ discard block |
||
748 | 745 | $this->cache = $cloned; |
749 | 746 | } |
750 | 747 | |
748 | + /** |
|
749 | + * @param integer $key |
|
750 | + * @param integer $val |
|
751 | + */ |
|
751 | 752 | public function set($key, $val, $tags = array()) { |
752 | 753 | // Find an index to set at |
753 | 754 | $replacing = null; |
@@ -783,6 +784,9 @@ discard block |
||
783 | 784 | return $this->miss ? ($this->hit / $this->miss) : 0; |
784 | 785 | } |
785 | 786 | |
787 | + /** |
|
788 | + * @param integer $key |
|
789 | + */ |
|
786 | 790 | public function get($key) { |
787 | 791 | if (isset($this->indexing[$key])) { |
788 | 792 | $this->hit++; |
@@ -796,6 +800,9 @@ discard block |
||
796 | 800 | return false; |
797 | 801 | } |
798 | 802 | |
803 | + /** |
|
804 | + * @param string $tag |
|
805 | + */ |
|
799 | 806 | public function clean($tag = null) { |
800 | 807 | if ($tag) { |
801 | 808 | foreach ($this->cache as $i => $v) { |
@@ -849,6 +856,9 @@ discard block |
||
849 | 856 | return $this->miss ? ($this->hit / $this->miss) : 0; |
850 | 857 | } |
851 | 858 | |
859 | + /** |
|
860 | + * @return string |
|
861 | + */ |
|
852 | 862 | public function get($key) { |
853 | 863 | if(isset($this->cache[$key])) { |
854 | 864 | ++$this->hit; |