Exemplo n.º 1
0
 /**
  * Read the whole Stream
  *
  * @return string
  *   Read data
  */
 public function readAll()
 {
     $output = '';
     /**
      * @internal
      * Using do...while() instead of "normal" while in order to avoid
      * a infinite loop.
      *
      * Tip from "Jet" (http://br.php.net/manual/en/function.feof.php#77912)
      */
     do {
         $output .= $this->read();
     } while (!$this->adapter->eof());
     return $output;
 }