Prado\IO\TTextWriter::flush PHP Метод

flush() публичный Метод

Flushes the content that has been written.
public flush ( ) : string
Результат string the content being flushed
    public function flush()
    {
        $str = $this->_str;
        $this->_str = '';
        return $str;
    }

Usage Example

Пример #1
0
 /**
  * Returns the text content wrapped within a HTML comment with boundary
  * identifier as its comment content.
  * @return string text content chunck.
  */
 public function flush()
 {
     $content = parent::flush();
     if (empty($content)) {
         return "";
     }
     return '<!--' . $this->getBoundary() . '-->' . $content . '<!--//' . $this->getBoundary() . '-->';
 }
All Usage Examples Of Prado\IO\TTextWriter::flush