Example #1
0
 public function flush()
 {
     foreach ($this->lines as $line) {
         $line->flush();
     }
     $this->lines = array();
     parent::flush();
 }
Example #2
0
 public function flush()
 {
     $placeholders = array('footer', 'header', 'watermark');
     foreach ($placeholders as $placeholder) {
         if ($this->{$placeholder}) {
             $this->{$placeholder}->flush();
             $this->{$placeholder} = null;
         }
     }
     parent::flush();
 }