Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /home/mendipla/public_html/includes/src/Mage_Core_functions.php on line 60

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/mendipla/public_html/includes/src/Mage_Core_functions.php on line 32
ring)$value).'"'; } } if ($this->hasChildren()) { $out .= '>'.$nl; foreach ($this->children() as $child) { $out .= $child->asNiceXml('', is_numeric($level) ? $level+1 : true); } $out .= $pad.'getName().'>'.$nl; } else { $value = (string)$this; if (strlen($value)) { $out .= '>'.$this->xmlentities($value).'getName().'>'.$nl; } else { $out .= '/>'.$nl; } } if ((0===$level || false===$level) && !empty($filename)) { file_put_contents($filename, $out); } return $out; } /** * Enter description here... * * @param int $level * @return string */ public function innerXml($level=0) { $out = ''; foreach ($this->children() as $child) { $out .= $child->asNiceXml($level); } return $out; } /** * Converts meaningful xml characters to xml entities * * @param string * @return string */ public function xmlentities($value = null) { if (is_null($value)) { $value = $this; } $value = (string)$value; $value = str_replace( array('&', '"', "'", '<', '>'), array('&', '"', ''', '<', '>'), $value ); return $value; } /** * Appends $source to current node * * @param Varien_Simplexml_Element $source * @return Varien_Simplexml_Element */ public function appendChild($source) { if ($source->children()) { /** * @see http://bugs.php.net/bug.php?id=41867 , fixed in 5.2.4 */ if (version_compare(phpversion(), '5.2.4', '<')===true) { $name = $source->children()->getName(); } else { $name = $source->getName(); } $child = $this->addChild($name); } else { $child = $this->addChild($source->getName(), $this->xmlentities($source)); } $child->setParent($this); $attributes = $source->attributes(); foreach ($attributes as $key=>$value) { $child->addAttribute($key, $this->xmlentities($value)); } foreach ($source->children() as $sourceChild) { $child->appendChild($sourceChild); } return $this; } /** * Extends current node with xml from $source * * If $overwrite is false will merge only missing nodes * Otherwise will overwrite existing nodes * * @param Varien_Simplexml_Element $source * @param boolean $overwrite * @return Varien_Simplexml_Element */ public function extend($source, $overwrite=false) { if (!$source instanceof Varien_Simplexml_Element) { return $this; } foreach ($source->children() as $child) { $this->extendChild($child, $overwrite); } return $this; } /** * Extends one node * * @param Varien_Simplexml_Element $source * @param boolean $overwrite * @return Varien_Simplexml_Element */ public function extendChild($source, $overwrite=false) { // this will be our new target node $targetChild = null; // name of the source node $sourceName = $source->getName(); // here we have children of our source node $sourceChildren = $source->children(); if (!$source->hasChildren()) { // handle string node if (isset($this->$sourceName)) { // if target already has children return without regard if ($this->$sourceName->hasChildren()) { return $this; } if ($overwrite) { unset($this->$sourceName); } else { return $this; } } $targetChild = $this->addChild($sourceName, $source->xmlentities()); $targetChild->setParent($this); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $this->xmlentities($value)); } return $this; } if (isset($this->$sourceName)) { $targetChild = $this->$sourceName; } if (is_null($targetChild)) { // if child target is not found create new and descend $targetChild = $this->addChild($sourceName); $targetChild->setParent($this); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $this->xmlentities($value)); } } // finally add our source node children to resulting new target node foreach ($sourceChildren as $childKey=>$childNode) { $targetChild->extendChild($childNode, $overwrite); } return $this; } public function setNode($path, $value, $overwrite=true) { $arr1 = explode('/', $path); $arr = array(); foreach ($arr1 as $v) { if (!empty($v)) $arr[] = $v; } $last = sizeof($arr)-1; $node = $this; foreach ($arr as $i=>$nodeName) { if ($last===$i) { /* if (isset($xml->$nodeName)) { if ($overwrite) { unset($xml->$nodeName); } else { continue; } } $xml->addChild($nodeName, $xml->xmlentities($value)); */ if (!isset($node->$nodeName) || $overwrite) { // http://bugs.php.net/bug.php?id=36795 // comment on [8 Feb 8:09pm UTC] if (isset($node->$nodeName) && (version_compare(phpversion(), '5.2.6', '<')===true)) { $node->$nodeName = $node->xmlentities($value); } else { $node->$nodeName = $value; } } } else { if (!isset($node->$nodeName)) { $node = $node->addChild($nodeName); } else { $node = $node->$nodeName; } } } return $this; } /* public function extendChildByNode($source, $overwrite=false, $mergeBy='name') { // this will be our new target node $targetChild = null; // name of the source node $sourceName = $source->getName(); // here we have children of our source node $sourceChildren = $source->children(); if (!$sourceChildren) { // handle string node if (isset($this->$sourceName)) { if ($overwrite) { unset($this->$sourceName); } else { return $this; } } $targetChild = $this->addChild($sourceName, (string)$source); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $value); } return $this; } if (isset($this->$sourceName)) { // search for target child with same name subnode as node's name if (isset($source->$mergeBy)) { foreach ($this->$sourceName as $targetNode) { if (!isset($targetNode->$mergeBy)) { Zend::exception("Can't merge identified node with non identified"); } if ((string)$source->$mergeBy==(string)$targetNode->$mergeBy) { $targetChild = $targetNode; break; } } } else { $existsWithId = false; foreach ($this->$sourceName as $targetNode) { if (isset($targetNode->$mergeBy)) { Zend::exception("Can't merge identified node with non identified"); } } $targetChild = $this->$sourceName; } } if (is_null($targetChild)) { // if child target is not found create new and descend $targetChild = $this->addChild($sourceName); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $value); } } // finally add our source node children to resulting new target node foreach ($sourceChildren as $childKey=>$childNode) { $targetChild->extendChildByNode($childNode, $overwrite, $mergeBy); } return $this; } public function extendChildByAttribute($source, $overwrite=false, $mergeBy='name') { // this will be our new target node $targetChild = null; // name of the source node $sourceName = $source->getName(); // here we have children of our source node $sourceChildren = $source->children(); if (!$sourceChildren) { // handle string node if (isset($this->$sourceName)) { if ($overwrite) { unset($this->$sourceName); } else { return $this; } } $targetChild = $this->addChild($sourceName, (string)$source); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $value); } return $this; } if (isset($this->$sourceName)) { // search for target child with same name subnode as node's name if (isset($source[$mergeBy])) { foreach ($this->$sourceName as $targetNode) { if (!isset($targetNode[$mergeBy])) { Zend::exception("Can't merge identified node with non identified"); } if ((string)$source[$mergeBy]==(string)$targetNode[$mergeBy]) { $targetChild = $targetNode; break; } } } else { $existsWithId = false; foreach ($this->$sourceName as $targetNode) { if (isset($targetNode[$mergeBy])) { Zend::exception("Can't merge identified node with non identified"); } } $targetChild = $this->$sourceName; } } if (is_null($targetChild)) { // if child target is not found create new and descend $targetChild = $this->addChild($sourceName); foreach ($source->attributes() as $key=>$value) { $targetChild->addAttribute($key, $value); } } // finally add our source node children to resulting new target node foreach ($sourceChildren as $childKey=>$childNode) { $targetChild->extendChildByAttribute($childNode, $overwrite, $mergeBy); } return $this; } */ }
Fatal error: Uncaught Error: Class 'Varien_Simplexml_Element' not found in /home/mendipla/public_html/includes/src/Mage_Core_Model_Config_Element.php:34 Stack trace: #0 /home/mendipla/public_html/includes/src/Varien_Autoload.php(94): include() #1 [internal function]: Varien_Autoload->autoload('Mage_Core_Model...') #2 [internal function]: spl_autoload_call('Mage_Core_Model...') #3 /home/mendipla/public_html/includes/src/Varien_Simplexml_Config.php(510): simplexml_load_string('<?xml version="...', 'Mage_Core_Model...') #4 /home/mendipla/public_html/includes/src/Varien_Simplexml_Config.php(498): Varien_Simplexml_Config->loadString('<?xml version="...', 'Mage_Core_Model...') #5 /home/mendipla/public_html/includes/src/Mage_Core_Model_Config.php(277): Varien_Simplexml_Config->loadFile('/home/mendipla/...') #6 /home/mendipla/public_html/includes/src/Mage_Core_Model_App.php(391): Mage_Core_Model_Config->loadBase() #7 /home/mendipla/public_html/includes/src/Mage_Core_Model_App.php(304): Mage_Core_Model_App->_initBaseConfig() #8 /h in /home/mendipla/public_html/includes/src/Mage_Core_Model_Config_Element.php on line 34