]> git.mxchange.org Git - core.git/commitdiff
Interface OutputStreamer has no longer assignVariable()
authorRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:04:45 +0000 (18:04 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:04:45 +0000 (18:04 +0000)
inc/classes/interfaces/io/output/class_OutputStreamer.php
inc/classes/main/debug/class_DebugConsoleOutput.php
inc/classes/main/debug/class_DebugErrorLogOutput.php
inc/classes/main/debug/class_DebugWebOutput.php
inc/classes/main/output/class_ConsoleOutput.php

index a6a2109e3f9b7a19d30cd154da93ecd643d90f7f..7fd9c0eb1f9b2e512382640a1616820f84fc3eae 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface OutputStreamer extends Streamable {
-       /**
-        * 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);
-
        /**
         * Output the code
         *
index f5588458d9b72c0395cfc1648994e2a528742c45..6bf372f8546d72932bb546bb87c3ce77d5901538 100644 (file)
@@ -59,18 +59,6 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
                printf("%s\n", $output);
        }
 
-       /**
-        * Assigns a variable for output
-        *
-        * @param       $var    The variable we shall assign
-        * @param       $value  The value to store in the variable
-        * @return      void
-        */
-       public final function assignVariable ($var, $value) {
-               // Empty stub!
-               trigger_error(__METHOD__.": Stub!");
-       }
-
        /**
         * Output the code
         *
index fcc7f65952c95c6a062bd68c4751e8bd53956a3c..b9a718922deffc2922f9ffd27a7af60a020ff785 100644 (file)
@@ -64,18 +64,6 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
                }
        }
 
-       /**
-        * Assigns a variable for output
-        *
-        * @param       $var    The variable we shall assign
-        * @param       $value  The value to store in the variable
-        * @return      void
-        */
-       public final function assignVariable ($var, $value) {
-               // Empty stub!
-               trigger_error(__METHOD__.": Stub!");
-       }
-
        /**
         * Output the code
         *
index e01ba0b9135c84957d644543da2a5245a7557050..3ff18e99047ee92d03b15b413750ca08e49fe28a 100644 (file)
@@ -57,18 +57,6 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
                print(stripslashes($output)."<br />\n");
        }
 
-       /**
-        * Assigns a variable for output
-        *
-        * @param       $var    The variable we shall assign
-        * @param       $value  The value to store in the variable
-        * @return      void
-        */
-       public final function assignVariable ($var, $value) {
-               // Empty stub!
-               trigger_error(__METHOD__.": Stub!");
-       }
-
        /**
         * Output the code
         *
index 599ec7f95d8a14c4923fe96b2c78ca92d0e9849a..e8b6cdcefe14ca58a092fb56b420e2ca5bddff4c 100644 (file)
@@ -28,11 +28,6 @@ class ConsoleOutput extends BaseFrameworkSystem implements OutputStreamer {
         */
        private static $consoleInstance = null;
 
-       /**
-        * Assigned variables
-        */
-       private $vars = array();
-
        /**
         * Protected constructor
         *
@@ -89,26 +84,7 @@ class ConsoleOutput extends BaseFrameworkSystem implements OutputStreamer {
         * @return      void
         */
        public final function output ($outStream = false) {
-               if ($outStream === false) {
-                       // Output something here...
-                       foreach ($this->vars as $var => $value) {
-                               $this->output("var=".$var.", value=".$value.'');
-                       }
-               } else {
-                       // Output it to the console
-                       printf("%s\n", trim(html_entity_decode(strip_tags(stripslashes($outStream)))));
-               }
-       }
-
-       /**
-        * Assigns a variable for output
-        *
-        * @param       $var    The variable we shall assign
-        * @param       $value  The value to store in the variable
-        * @return      void
-        */
-       public function assignVariable ($var, $value) {
-               $this->vars[$var] = $value;
+               print trim($outStream) . "\n";
        }
 }