From 9ea7c80cda1d4b8018ddc61a0d1a2f9e5eedbdf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 8 Aug 2009 19:12:21 +0000 Subject: [PATCH] Iterator instance is now handled in BaseFrameworkSystem class --- .../main/class_BaseFrameworkSystem.php | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 16c04ed9..0b5ce310 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -74,10 +74,15 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { private $controllerInstance = null; /** - * Instance of an RNG + * Instance of a RNG */ private $rngInstance = null; + /** + * Instance of an Iterator class + */ + private $iteratorInstance = null; + /** * The real class name */ @@ -1164,6 +1169,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { public final function getRngInstance () { return $this->rngInstance; } + + /** + * Setter for Iterator instance + * + * @param $iteratorInstance An instance of an Iterator + * @return void + */ + protected final function setIteratorInstance (Iterator $iteratorInstance) { + $this->iteratorInstance = $iteratorInstance; + } + + /** + * Getter for Iterator instance + * + * @return $iteratorInstance An instance of an Iterator + */ + public final function getIteratorInstance () { + return $this->iteratorInstance; + } } // [EOF] -- 2.39.5