コード例 #1
0
ファイル: Buffer.php プロジェクト: typerocket/laravel
 /**
  * Index Buffered output
  *
  * @param $index
  *
  * @return $this
  */
 public function indexBuffer($index)
 {
     if ($this->buffering) {
         $index = Sanitize::underscore($index);
         $data = ob_get_clean();
         $this->buffer[$index] = $data;
         $this->buffering = false;
     }
     return $this;
 }