/** * vyjme LBCI ze stromu a vlozi jej nakonec */ public function removeFromTree() { try { $this->config->getDOM()->documentElement->appendChild($this->getNode()); } catch (Exception $e) { throw $e; } }
/** * pretizeno o kontrolu vzhledem k multilang */ public function getDOM() { try { if ($this->dom instanceof DOMDocument) { return $this->dom; } $configNameBase = $this->configName; try { $this->configName .= "." . LBoxFront::getDisplayLanguage(); return parent::getDOM(); } catch (Exception $e) { $this->configName = $configNameBase; return parent::getDOM(); } } catch (Exception $e) { throw $e; } }
/** * pretizeno o kontrolu vzhledem k multilang */ public function getDOM() { try { if ($this->dom instanceof DOMDocument) { return $this->dom; } $configNameBase = $this->configName; try { $this->configName .= "." . LBoxFront::getDisplayLanguage(); return parent::getDOM(); } catch (Exception $e) { try { $this->configName = $configNameBase; return parent::getDOM(); } catch (Exception $e) { if ($e->getCode() == LBoxExceptionConfig::CODE_TYPE_NOT_FOUND) { die($this->configName . ".xml not found due to langdomain did not recognized!"); } } } } catch (Exception $e) { throw $e; } }