Ejemplo n.º 1
0
 public function flush()
 {
     foreach ($this->lines as $line) {
         $line->flush();
     }
     $this->lines = array();
     parent::flush();
 }
Ejemplo n.º 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();
 }