From 11cbacb35e308a58c919b672b368780bd8f11661 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 4 Feb 2010 23:35:05 +0000 Subject: [PATCH] FIFO stacker basicly implemented --- inc/classes/main/stacker/fifo/class_FiFoStacker.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/stacker/fifo/class_FiFoStacker.php b/inc/classes/main/stacker/fifo/class_FiFoStacker.php index fa88aa99..01017706 100644 --- a/inc/classes/main/stacker/fifo/class_FiFoStacker.php +++ b/inc/classes/main/stacker/fifo/class_FiFoStacker.php @@ -57,7 +57,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws StackerFullException If the stack is full */ public function pushNamed ($stackerName, $value) { - $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value); + // Call the protected method + parent::addValue($stackerName, $value); } /** @@ -69,7 +70,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function popNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + // Call the protected method + parent::popFirst($stackerName); } /** @@ -81,7 +83,8 @@ class FiFoStacker extends BaseStacker implements Stackable { * @throws EmptyStackerException If the named stacker is empty */ public function getNamed ($stackerName) { - $this->partialStub('stackerName=' . $stackerName); + // Call the protected method + return parent::getLastValue($stackerName); } } -- 2.39.5