From 98465157d09c667ac58626cc7d9a12823a678799 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Apr 2012 20:05:14 +0000 Subject: [PATCH] Added method stubs to satisfy interface --- inc/classes/main/debug/class_DebugErrorLogOutput.php | 12 ++++++++++++ inc/classes/main/debug/class_DebugWebOutput.php | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/inc/classes/main/debug/class_DebugErrorLogOutput.php b/inc/classes/main/debug/class_DebugErrorLogOutput.php index 3fa1f719..9c741375 100644 --- a/inc/classes/main/debug/class_DebugErrorLogOutput.php +++ b/inc/classes/main/debug/class_DebugErrorLogOutput.php @@ -79,6 +79,18 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu $this->outputStream($outStream); } } + + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @return $data The data (string mostly) to "stream" + * @throws UnsupportedOperationException If this method is called + */ + public function streamData ($data) { + $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); + } } // [EOF] diff --git a/inc/classes/main/debug/class_DebugWebOutput.php b/inc/classes/main/debug/class_DebugWebOutput.php index b7ac4f0a..b70ca337 100644 --- a/inc/classes/main/debug/class_DebugWebOutput.php +++ b/inc/classes/main/debug/class_DebugWebOutput.php @@ -68,6 +68,18 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre $this->outputStream($outStream); } } + + /** + * Streams the data and maybe does something to it + * + * @param $data The data (string mostly) to "stream" + * @return $data The data (string mostly) to "stream" + * @throws UnsupportedOperationException If this method is called + */ + public function streamData ($data) { + $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); + } } // [EOF] -- 2.39.5