From aae25237f01ddf26dda0b93779a0d3c231b5b789 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 22 Aug 2012 19:01:11 +0000 Subject: [PATCH] getArrayFromKey() now requires two parameters (see docu) --- inc/classes/main/registry/class_BaseRegistry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5