projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0462ab4
)
Introduced initStackers() which wraps initialization of several stacks
author
Roland Häder
<roland@mxchange.org>
Wed, 17 Jul 2013 20:55:11 +0000
(20:55 +0000)
committer
Roland Häder
<roland@mxchange.org>
Wed, 17 Jul 2013 20:55:11 +0000
(20:55 +0000)
inc/classes/main/stacker/class_BaseStacker.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/stacker/class_BaseStacker.php
b/inc/classes/main/stacker/class_BaseStacker.php
index 32dc9d9cc8dc857d5a2508265ca8409ecdaaded5..e329f60059a311da7eb1f31b00f7e0f46fe27681 100644
(file)
--- 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)
*