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