model = $m; } function totalHeight($parent) { return 10; } function initDisplay($parent) { } function display($parent) { $pdf = $parent->getPDF(); $headerFrame = $parent->getHeaderFrame(); $displayFormat = '-%s-'; if($this->model) { $displayFormat = $this->model->get('format', $displayFormat); } $contentHeight = $pdf->GetStringHeight($displayFormat, $headerFrame->w/2.0); $pdf->MultiCell($headerFrame->w/2.0, $contentHeight, sprintf($displayFormat, $pdf->getPage()), 0, 'L', 0, 1, $headerFrame->x+$headerFrame->w/2.0, $headerFrame->y); } } ?>