419 throw new Exception('CMS Exception');
420 }
421 } else if($xmlMixed === null) {
422 $dom = new DOMDocument;
423 } else {
424 $dom = cms_xml_cache::getXmlDomTable($xmlMixed);
425 }
426 }
427
428 if($dom === null)
429 throw new Exception('CMS Exception');
445 // Default XPath setzen wenn notwendig
446 if (!$sXPath)
447 $sXPath = 'entry';
448
449 // DOMDocument holen bzw. erstellen
450 $oDoc = $this->_getDomDocument($xmlMixed);
451
452 453 $oXPath = new DOMXPath($oDoc);
454 if($bQuery) {
455 $oEntries = $oXPath->query($sXPath);
731 {
732 // initialize variables
733 $sContent = '';
734
735 // evaluate DOM / XPath
736 $oEntries = $this->_getDomElement($xmlMixed, $sXPath);
737
738 if(is_string($xmlMixed)) {
739 if (substr($xmlMixed, 0, 2) != '') {
740 $this->aData['attr_table'] = $xmlMixed;
741 }
192 $c->aData['produkt_id'] = $row['attr_id'];
193
194 // Product holen
195 $xpath = "entry[code='{$row['modelno']}']";
196 $c->onTableRow = 'OnTableRow_Product';
197 $c->getAll('product', 'product.detail', $xpath);
198
199 $c->aData['parent_id'] = $row['attr_id'];
200
201 //$xpath = "//entry[@id={$row['attr_id']}]/parent::*/parent::*/parent::*/parent::*";
202 $xpath = "//entry[@id={$row['attr_id']}]//ancestor::entry[@type='produktgruppe']";
Brushed Stainless Steel wall washer.
Lamp options:
Incandescent, Compact Fluorescent and SL-COB (Stone Lighting Chip on Board) LED module.
828 $this->sHtmlItem = $sHtmlItem;
829 }
830
831 // call function 'onTableRow'
832 if ($sFunc)
833 $show = $this->_oModule->$sFunc($this, $aRow);
834
835 // create content, if needed
836 if (!$show) {
837 $oContent->sHtml = $this->sHtmlItem;
838
242
243 $c->aDataG['page_is_product'] = 1;
244
245 $xpath = "//entry[@id={$id}][@active=1]";
246 $c->onTableRow = 'OnTableRow_ProductDetail';
247 $c->getAll('produktgruppe', 'product', $xpath);
248
249 $xml->sHtmlItem = $c->create();
250 unset($c);
251
252 }
196
197 $this->_parameters($cloneXml);
198
199 unset($cloneXml);
200
201 $this->_execute($this->_oXml, $this->_aRow);
202 }
203
204 }
73 }
74
75 76 if($view) {
77 $v = cms_view::factory($view, $xml, $row);
78 $v->execute($xml, $row);
79 unset($v);
80 }
81 }
82
83 /**
828 $this->sHtmlItem = $sHtmlItem;
829 }
830
831 // call function 'onTableRow'
832 if ($sFunc)
833 $show = $this->_oModule->$sFunc($this, $aRow);
834
835 // create content, if needed
836 if (!$show) {
837 $oContent->sHtml = $this->sHtmlItem;
838
94 $xpath = "/entry[@active=1]";
95
96 97 //$xml->oRowSXml->attributes()->type = $row['attr_type'] . '.' . $row['type'];
98 $c->onTableRow = 'OnTableRow_Module';
99 $c->getAll($xml->oRowXml, $row['attr_type'] . '.' . $row['type'], $xpath);
100
101 $xml->sHtmlItem = $c->create();
102 unset($c);
103 }
104 }
196
197 $this->_parameters($cloneXml);
198
199 unset($cloneXml);
200
201 $this->_execute($this->_oXml, $this->_aRow);
202 }
203
204 }
162 if($view) {
163 $xml->aData['module.' . $row['type']] = 1;
164 $xml->aVar['type'] = $row['type'];
165
166 $v = cms_view::factory($view, $xml, $row);
167 $v->execute();
168 unset($v);
169
170 unset($xml->aVar['type']);
171 unset($xml->aData['module.' . $row['type']]);
172 }
828 $this->sHtmlItem = $sHtmlItem;
829 }
830
831 // call function 'onTableRow'
832 if ($sFunc)
833 $show = $this->_oModule->$sFunc($this, $aRow);
834
835 // create content, if needed
836 if (!$show) {
837 $oContent->sHtml = $this->sHtmlItem;
838
527 $this->_oXml->onTableRow = 'OnTableRow_Seite';
528 $this->_oXml->get('seiten', $this->_oXml->aVarG['page_id']);
529
530 //Content holen u. setzen
531 $this->_oXml->onTableRow = 'OnTableRow_Inhalte';
532 $this->_oXml->getAll('seiten', 'content', "entry[@id={$this->_oXml->aVarG['page_id']}]/content/entry[@active=1]");
533
534 //Menu 1 erstellen
535 /*
536 $this->_oXml->onTableRow = 'OnTableRow_Menu_1';
537 //$this->_oXml->getAll('seiten', 'menu_1', "entry[@active=1][level=0]");
617 $this->create($this->_oXml);
618 $oCache->write($this->_oXml->sHtml);
619 }
620 unset($oCache);
621 } else {
622 $this->create($this->_oXml);
623 }
624
625 }
626 }
627
196
197 $this->_parameters($cloneXml);
198
199 unset($cloneXml);
200
201 $this->_execute($this->_oXml, $this->_aRow);
202 }
203
204 }
224 {
225 */
226 $row = array();
227
228 $view = cms_view::factory('cms_view_index', $c, $row);
229 $view->execute();
230 unset($view);
231 /*
232 } catch (Exception $e) {
233
234 $php_errors = array(