Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 /**
  * Gets the Xml for the specified layout
  * @return 
  * @param $layoutid Object
  */
 public function GetLayoutXml($layoutid)
 {
     $layout = new Layout($this->db);
     return $layout->GetLayoutXml($layoutid);
 }