From: Roland Häder Date: Wed, 22 Aug 2012 19:01:11 +0000 (+0000) Subject: getArrayFromKey() now requires two parameters (see docu) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aae25237f01ddf26dda0b93779a0d3c231b5b789;p=core.git getArrayFromKey() now requires two parameters (see docu) --- diff --git a/inc/classes/main/registry/class_BaseRegistry.php b/inc/classes/main/registry/class_BaseRegistry.php index cfe6edbc..e16ded28 100644 --- a/inc/classes/main/registry/class_BaseRegistry.php +++ b/inc/classes/main/registry/class_BaseRegistry.php @@ -122,15 +122,16 @@ class BaseRegistry extends BaseFrameworkSystem implements Registerable { /** * "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 */ - public function getArrayFromKey ($lookFor) { + public function getArrayFromKey ($arrayKey, $lookFor) { // 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);