From 8e6b15818d226f36bc57cc4e04448b262863bca9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 17 Jul 2013 20:55:11 +0000 Subject: [PATCH] Introduced initStackers() which wraps initialization of several stacks --- inc/classes/main/stacker/class_BaseStacker.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index 32dc9d9c..e329f600 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -58,6 +58,19 @@ class BaseStacker extends BaseFrameworkSystem { $this->initGenericArrayKey('stacks', $stackerName, 'entries', $forceReInit); } + /** + * Initializes all stackers + * + * @return void + */ + public function initStackers (array $stacks) { + // "Walk" through all (more will be added as needed + foreach ($stacks as $stackerName) { + // Init this stack + $this->initStacker($stackerName); + } // END - foreach + } + /** * Checks whether the given stack is initialized (set in array $stackers) * -- 2.30.2