Example #1
0
 public static function get($stocks)
 {
     $pdf = new self();
     $pdf->_init();
     foreach ($stocks as $stock) {
         $pdf->_show($stock);
     }
     $pdf->_footer();
     return $pdf->Output('', 'S');
 }
 public static function get(Site $entity, $transmitters, $withHeader = true)
 {
     $pdf = new self();
     $pdf->setWithHeader($withHeader);
     $pdf->_init($entity);
     foreach ($transmitters as $transmitter) {
         $pdf->_show($transmitter);
     }
     $pdf->_footer();
     return $pdf->Output('', 'S');
 }