public function getMarkup() { $parent = $this->getParent(); if ($parent == null) { throw new \RuntimeException('Unable to locate parent for header container'); } $headerMarkup = $parent->getMarkup()->getChildByName('head'); if ($headerMarkup != null) { return $headerMarkup; } $headerMarkup = MarkupUtils::findPiconTag('head', $parent->getMarkup()); return $headerMarkup; }
public function getRootTag(MarkupElement $markup) { return MarkupUtils::findPiconTag('border', $markup); }
private function getChildTag($markup) { $child = MarkupUtils::findPiconTag('child', $markup); if ($child == null) { return null; } $existingExtension = MarkupUtils::findPiconTag('extend', $child); if ($existingExtension == null) { return $child; } else { return $this->getChildTag($existingExtension); } }