]> git.mxchange.org Git - hub.git/commitdiff
interfaces OutputStreamer implemented in all debuggers
authorRoland Häder <roland@mxchange.org>
Mon, 3 Mar 2008 21:10:58 +0000 (21:10 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 3 Mar 2008 21:10:58 +0000 (21:10 +0000)
inc/classes/main/debug/class_DebugConsoleOutput.php
inc/classes/main/debug/class_DebugErrorLogOutput.php
inc/classes/main/debug/class_DebugWebOutput.php

index 46205f48b3982ee8dbe5e32d7759f4da7fd3dfc2..8cc9cfb1d4fa5be66ff9c8d36de2db0f3b3b0bad 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger {
+class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
        /**
         * Private constructor
         *
@@ -60,6 +60,29 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger {
        public final function outputStream ($output) {
                print html_entity_decode(strip_tags($output));
        }
+
+       /**
+        * Assigns a variable for output
+        *
+        * @param               $var            The variable we shall assign
+        * @param               $value  The value to store in the variable
+        * @return      void
+        */
+       function assignVariable ($var, $value) {
+               // Empty stub!
+               trigger_error(__METHOD__.": Stub!");
+       }
+
+       /**
+        * Output the code
+        *
+        * @return      void
+        */
+       function output ($outStream=false) {
+               if ($outStream !== false) {
+                       $this->outputStream($outStream);
+               }
+       }
 }
 
 // [EOF]
index 2897e948f526d0c761d16f5d1902848e7d17fd0d..2afc3737bc22870ae70b336963a36752418b2b17 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger {
+class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
        /**
         * Private constructor
         *
@@ -69,6 +69,29 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger {
                        }
                }
        }
+
+       /**
+        * Assigns a variable for output
+        *
+        * @param               $var            The variable we shall assign
+        * @param               $value  The value to store in the variable
+        * @return      void
+        */
+       function assignVariable ($var, $value) {
+               // Empty stub!
+               trigger_error(__METHOD__.": Stub!");
+       }
+
+       /**
+        * Output the code
+        *
+        * @return      void
+        */
+       function output ($outStream=false) {
+               if ($outStream !== false) {
+                       $this->outputStream($outStream);
+               }
+       }
 }
 
 // [EOF]
index f79bec012363d4551102e3e26965b4b431fe5619..d913ce6e295a26139f231aa75a46582e1fa5b084 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class DebugWebOutput extends BaseFrameworkSystem implements Debugger {
+class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
        /**
         * Private constructor
         *
@@ -60,6 +60,29 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger {
        public final function outputStream ($output) {
                trigger_error($output);
        }
+
+       /**
+        * Assigns a variable for output
+        *
+        * @param               $var            The variable we shall assign
+        * @param               $value  The value to store in the variable
+        * @return      void
+        */
+       function assignVariable ($var, $value) {
+               // Empty stub!
+               trigger_error(__METHOD__.": Stub!");
+       }
+
+       /**
+        * Output the code
+        *
+        * @return      void
+        */
+       function output ($outStream=false) {
+               if ($outStream !== false) {
+                       $this->outputStream($outStream);
+               }
+       }
 }
 
 // [EOF]