Ejemplo n.º 1
0
 /**
  * Add an element - ReportPdf
  *
  * @param object|string $element Object or string
  *
  * @return int
  */
 public function addElement($element)
 {
     if ($this->processing == "B") {
         return $this->pdf->addBody($element);
     } elseif ($this->processing == "H") {
         return $this->pdf->addHeader($element);
     } elseif ($this->processing == "F") {
         return $this->pdf->addFooter($element);
     }
     return 0;
 }