]> git.mxchange.org Git - hub.git/blobdiff - inc/classes/main/debug/class_DebugWebOutput.php
interfaces OutputStreamer implemented in all debuggers
[hub.git] / inc / classes / main / debug / class_DebugWebOutput.php
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]