* 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
*
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]
* 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
*
}
}
}
+
+ /**
+ * 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]
* 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
*
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]