From: Roland Häder Date: Wed, 17 Jul 2013 20:55:11 +0000 (+0000) Subject: Introduced initStackers() which wraps initialization of several stacks X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e6b15818d226f36bc57cc4e04448b262863bca9;p=core.git Introduced initStackers() which wraps initialization of several stacks --- 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) *