- 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;
+ public final function output ($outStream = false, $stripTags = false) {
+ print trim($outStream) . PHP_EOL;