getArrayFromKey() now requires two parameters (see docu)
authorRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 19:01:11 +0000 (19:01 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 19:01:11 +0000 (19:01 +0000)
inc/classes/main/registry/class_BaseRegistry.php

index cfe6edbc5403e3db20a6690b9e046868847c464e..e16ded285d03062011f626211db1ef56eb5b1cac 100644 (file)
@@ -122,15 +122,16 @@ class BaseRegistry extends BaseFrameworkSystem implements Registerable {
        /**
         * "Getter" for an array of all entries for given key
         *
        /**
         * "Getter" for an array of all entries for given key
         *
+        * @param       $arrayKey       The array (key) to look in
         * @param       $lookFor        The key to look for
         * @return      $entry          An array with all keys
         */
         * @param       $lookFor        The key to look for
         * @return      $entry          An array with all keys
         */
-       public function getArrayFromKey ($lookFor) {
+       public function getArrayFromKey ($arrayKey, $lookFor) {
                // Init array
                $entry = array();
 
                // "Walk" over all entries
                // Init array
                $entry = array();
 
                // "Walk" over all entries
-               foreach ($this->getEntries('object-name') as $key => $value) {
+               foreach ($this->getEntries($arrayKey) as $key => $value) {
                        // Debug message
                        //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('REGISTRY: Checking key=' . $key . ',value=' . $value . ',lookFor=' . $lookFor);
 
                        // Debug message
                        //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('REGISTRY: Checking key=' . $key . ',value=' . $value . ',lookFor=' . $lookFor);