public function initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight) { parent::initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight); foreach ($this->children as $component) { if (get_class($component) != "") { $component->initComponent($pdfDocument, $pdfWriter, $this->x, $this->y, $this->marginTop, $this->marginLeft, $this->marginRight, $this->marginBottom, $this->width, $this->height); } } }
public function initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight) { parent::initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight); $this->rowHeight = $this->fontSize + 2 * $this->cellPadding; }