public static function get($entity)
 {
     $pdf = new self();
     $pdf->_init($entity);
     $pdf->_show($entity);
     return $pdf->Output('', 'S');
 }
 public static function get($entities)
 {
     $pdf = new self();
     foreach ($entities as $entity) {
         $pdf->_init($entity);
         $pdf->_show($entity);
     }
     return $pdf->Output('', 'S');
 }
Example #3
0
 public static function get($stocks)
 {
     $pdf = new self();
     $pdf->_init();
     foreach ($stocks as $stock) {
         $pdf->_show($stock);
     }
     $pdf->_footer();
     return $pdf->Output('', 'S');
 }
Example #4
0
 public static function get(\DateTime $date, $entities)
 {
     $pdf = new self();
     $pdf->_init();
     $pdf->_header($date);
     foreach ($entities as $entity) {
         $pdf->_show($entity, $date);
     }
     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');
 }