public static function get(Intervention $entity) { $pdf = new static(); $pdf->_init(); $pdf->_show($entity); $pdf->_report($entity); return $pdf->Output('', 'S'); }
public static function get($entities, $options = false, $output = 'S') { $pdf = new static(); $pdf->_init(); foreach ($entities as $entity) { $pdf->addEntity($entity, $options); } return $pdf->Output('', 'S'); }