/** * Gets the Xml for the specified layout * @return * @param $layoutid Object */ public function GetLayoutXml($layoutid) { if ($this->layoutXml == '') { $layout = new Layout(); $this->layoutXml = $layout->GetLayoutXml($layoutid); } return $this->layoutXml; }
/** * Gets the Xml for the specified layout * @return * @param $layoutid Object */ private function GetLayoutXmlNoMedia($layoutid) { // Get the Xml for this Layout from the DB Kit::ClassLoader('layout'); $layout = new Layout($this->db); $layoutXml = $layout->GetLayoutXml($layoutid); $xml = new DOMDocument("1.0"); $xml->loadXML($layoutXml); $xpath = new DOMXPath($xml); //We want to get all the media nodes $mediaNodes = $xpath->query('//media'); foreach ($mediaNodes as $node) { $node->parentNode->removeChild($node); } return $xml->saveXML(); }
/** * Gets the Xml for the specified layout * @return * @param $layoutid Object */ public function GetLayoutXml($layoutid) { $layout = new Layout($this->db); return $layout->GetLayoutXml($layoutid); }