From ecf78b6c5d2d935ee62ea5f1deb018f2bd9106a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 14 Apr 2011 20:52:26 +0000 Subject: [PATCH] Added setter/getter for I/O streams --- .../main/class_BaseFrameworkSystem.php | 50 +++++++++++++++++-- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index eed98512..73810733 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -134,10 +134,20 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { private $helperInstance = null; /** - * An instance of a source + * An instance of a Sourceable class */ private $sourceInstance = null; + /** + * An instance of a InputStreamable class + */ + private $inputStreamInstance = null; + + /** + * An instance of a OutputStreamable class + */ + private $outputStreamInstance = null; + /** * The real class name */ @@ -166,6 +176,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { /*********************** * Exception codes.... * ***********************/ + // @todo Try to clean these constants up const EXCEPTION_IS_NULL_POINTER = 0x001; const EXCEPTION_IS_NO_OBJECT = 0x002; @@ -1565,12 +1576,41 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { } /** - * Getter for a Sourceable instance + * Getter for a InputStreamable instance * - * @param $sourceInstance The Sourceable instance + * @param $inputStreamInstance The InputStreamable instance + */ + protected final function getInputStreamInstance () { + return $this->inputStreamInstance; + } + + /** + * Setter for a InputStreamable instance + * + * @param $inputStreamInstance The InputStreamable instance + * @return void + */ + protected final function setInputStreamInstance (InputStreamable $inputStreamInstance) { + $this->inputStreamInstance = $inputStreamInstance; + } + + /** + * Getter for a OutputStreamable instance + * + * @param $outputStreamInstance The OutputStreamable instance + */ + protected final function getOutputStreamInstance () { + return $this->outputStreamInstance; + } + + /** + * Setter for a OutputStreamable instance + * + * @param $outputStreamInstance The OutputStreamable instance + * @return void */ - protected final function getSourceInstance () { - return $this->sourceInstance; + protected final function setOutputStreamInstance (OutputStreamable $outputStreamInstance) { + $this->outputStreamInstance = $outputStreamInstance; } /** -- 2.39.5