/** * If a group is inside a list, we must first call openEnclosingTags. Then call the parent's visitGroup. * @param IdmlGroup $element * @param int $depth */ public function visitGroup(IdmlGroup $element, $depth = 0) { // If the group is inside a paragraph range, we must first open the enclosing tags $paragraph = $this->getAncestor($element, 'IdmlParagraphRange'); if (!is_null($paragraph)) { $this->openEnclosingTags($element, false, false, $depth); } parent::visitGroup($element, $depth); }
public function getPageContent() { $html = parent::getBodyContent(); if (Configure::read('processor.IdmlGeneratePxeOutput') == true) { $pxeExporter = new IdmlPxeExporter("<html><head></head><body>{$html}</body></html>"); $pxeExporter->process(); $html = $pxeExporter->getContent(); } return $html; }