projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4df873d
)
Renamed 'stacker' -> 'stack'
author
Roland Häder
<roland@mxchange.org>
Thu, 25 Jul 2013 01:14:57 +0000
(
01:14
+0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 25 Jul 2013 01:14:57 +0000
(
01:14
+0000)
inc/classes/main/stacker/class_
patch
|
blob
|
history
inc/classes/main/stacker/class_BaseStacker.php
patch
|
blob
|
history
inc/classes/main/stacker/fifo/class_FiFoStacker.php
patch
|
blob
|
history
inc/classes/main/stacker/filo/class_FiLoStacker.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/stacker/class_
b/inc/classes/main/stacker/class_
index 423701cf025e216da7f243c92425ba4dab70f32d..ff8387b2c38a537efbd36c16d4cd165409c96109 100644
(file)
--- a/
inc/classes/main/stacker/class_
+++ b/
inc/classes/main/stacker/class_
@@
-43,7
+43,7
@@
class ???Stacker extends BaseStacker implements Stackable {
$stackerInstance = new ???Stacker();
// Init generic stacker
$stackerInstance = new ???Stacker();
// Init generic stacker
- $stackerInstance->initStack
er
('generic');
+ $stackerInstance->initStack('generic');
// Return the prepared instance
return $stackerInstance;
// Return the prepared instance
return $stackerInstance;
diff --git
a/inc/classes/main/stacker/class_BaseStacker.php
b/inc/classes/main/stacker/class_BaseStacker.php
index 55b28a6d5409ea163bb6e68612c60e2b098d380f..12cfc03113c0163ad1b7775b9e40c5414ca80145 100644
(file)
--- a/
inc/classes/main/stacker/class_BaseStacker.php
+++ b/
inc/classes/main/stacker/class_BaseStacker.php
@@
-47,7
+47,7
@@
class BaseStacker extends BaseFrameworkSystem {
* @return void
* @throws AlreadyInitializedStackerException If the stack is already initialized
*/
* @return void
* @throws AlreadyInitializedStackerException If the stack is already initialized
*/
- public final function initStack
er
($stackerName, $forceReInit = FALSE) {
+ public final function initStack ($stackerName, $forceReInit = FALSE) {
// Is the stack already initialized?
if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) {
// Then throw the exception
// Is the stack already initialized?
if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) {
// Then throw the exception
@@
-59,15
+59,15
@@
class BaseStacker extends BaseFrameworkSystem {
}
/**
}
/**
- * Initializes all stack
er
s
+ * Initializes all stacks
*
* @return void
*/
*
* @return void
*/
- public function initStack
ers (array $stacks
) {
+ public function initStack
s (array $stacks, $forceReInit = FALSE
) {
// "Walk" through all (more will be added as needed
foreach ($stacks as $stackerName) {
// Init this stack
// "Walk" through all (more will be added as needed
foreach ($stacks as $stackerName) {
// Init this stack
- $this->initStack
er($stackerName
);
+ $this->initStack
($stackerName, $forceReInit
);
} // END - foreach
}
} // END - foreach
}
@@
-160,7
+160,7
@@
class BaseStacker extends BaseFrameworkSystem {
// Is the stack not yet initialized or full?
if (!$this->isStackInitialized($stackerName)) {
// Then do it here
// Is the stack not yet initialized or full?
if (!$this->isStackInitialized($stackerName)) {
// Then do it here
- $this->initStack
er
($stackerName);
+ $this->initStack($stackerName);
} elseif ($this->isStackFull($stackerName)) {
// Stacker is full
throw new FullStackerException(array($this, $stackerName, $value), self::EXCEPTION_STACKER_IS_FULL);
} elseif ($this->isStackFull($stackerName)) {
// Stacker is full
throw new FullStackerException(array($this, $stackerName, $value), self::EXCEPTION_STACKER_IS_FULL);
diff --git
a/inc/classes/main/stacker/fifo/class_FiFoStacker.php
b/inc/classes/main/stacker/fifo/class_FiFoStacker.php
index 237c3d3e7c9928404db16b59965ef9a1f7718d1a..29bcd709f62d9872bda5be3248b1ef2430204ede 100644
(file)
--- a/
inc/classes/main/stacker/fifo/class_FiFoStacker.php
+++ b/
inc/classes/main/stacker/fifo/class_FiFoStacker.php
@@
-42,7
+42,7
@@
class FiFoStacker extends BaseStacker implements Stackable {
$stackerInstance = new FiFoStacker();
// Init generic stacker
$stackerInstance = new FiFoStacker();
// Init generic stacker
- $stackerInstance->initStack
er
('generic');
+ $stackerInstance->initStack('generic');
// Return the prepared instance
return $stackerInstance;
// Return the prepared instance
return $stackerInstance;
diff --git
a/inc/classes/main/stacker/filo/class_FiLoStacker.php
b/inc/classes/main/stacker/filo/class_FiLoStacker.php
index de191dc18c9ae7247b7c6f3ba7d821c6bbd0b864..a2920fa6a2ad31a13795e8b10a75cf7e1bdcdca5 100644
(file)
--- a/
inc/classes/main/stacker/filo/class_FiLoStacker.php
+++ b/
inc/classes/main/stacker/filo/class_FiLoStacker.php
@@
-42,7
+42,7
@@
class FiLoStacker extends BaseStacker implements Stackable {
$stackerInstance = new FiLoStacker();
// Init the generic stacker
$stackerInstance = new FiLoStacker();
// Init the generic stacker
- $stackerInstance->initStack
er
('generic');
+ $stackerInstance->initStack('generic');
// Return the prepared instance
return $stackerInstance;
// Return the prepared instance
return $stackerInstance;