Example #1
0
 public static function get($door, $entities)
 {
     $pdf = new self();
     $pdf->_init();
     $pdf->_header($door);
     foreach ($entities as $entity) {
         $pdf->_show($entity);
     }
     return $pdf->Output('', 'S');
 }
Example #2
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');
 }
Example #3
0
 public static function get($entity)
 {
     $pdf = new self();
     $pdf->setEntity($entity[0]);
     $pdf->addPage();
     $pdf->_init();
     $pdf->_header();
     $pdf->_content();
     return $pdf->Output('', 'S');
 }