Exemple #1
0
 /**
  * Outputs a single or multiple messages to stdout. If no parameters
  * are passed outputs just a newline.
  *
  * @param mixed $message A string or a an array of strings to output
  * @param integer $newlines Number of newlines to append
  * @return integer Returns the number of bytes returned from writing to stdout.
  * @access public
  */
 function out($message = null, $newlines = 1)
 {
     if (is_array($message)) {
         $message = implode($this->nl(), $message);
     }
     return $this->Dispatch->stdout($message . $this->nl($newlines), false);
 }
 /**
  * Outputs to the stdout filehandle.
  *
  * @param string $string String to output.
  * @param boolean $newline If true, the outputs gets an added newline.
  * @access public
  */
 function out($string, $newline = true)
 {
     if (is_array($string)) {
         $string = implode("\n", $string) . "\n";
     }
     return $this->Dispatch->stdout($string, $newline);
 }
Exemple #3
0
 /**
  * Outputs a single or multiple messages to stdout.
  *
  * @param mixed $message A string or a an array of strings to output
  * @param mixed $after Appended to message, if true a newline is used
  * @access public
  */
 function out($message, $after = true)
 {
     if (is_array($message)) {
         $message = implode($this->nl(), $message);
     }
     $this->Dispatch->stdout($message . $this->nl($after), false);
 }
 /**
  * Outputs to the stdout filehandle.
  *
  * @param string $string String to output.
  * @param boolean $newline If true, the outputs gets an added newline.
  * @access public
  */
 function out($string, $newline = true)
 {
     if (is_array($string)) {
         $str = '';
         foreach ($string as $message) {
             $str .= $message . "\n";
         }
         $string = $str;
     }
     return $this->Dispatch->stdout($string, $newline);
 }