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
cale = Mage::getSingleton('core/locale'); } return $this->_locale; } /** * Retrive layout object * * @return Mage_Core_Model_Layout */ public function getLayout() { if (!$this->_layout) { if ($this->getFrontController()->getAction()) { $this->_layout = $this->getFrontController()->getAction()->getLayout(); } else { $this->_layout = Mage::getSingleton('core/layout'); } } return $this->_layout; } /** * Retrieve translate object * * @return Mage_Core_Model_Translate */ public function getTranslator() { if (!$this->_translator) { $this->_translator = Mage::getSingleton('core/translate'); } return $this->_translator; } /** * Retrieve helper object * * @param string $name * @return Mage_Core_Helper_Abstract */ public function getHelper($name) { return Mage::helper($name); } /** * Retrieve application base currency code * * @return string */ public function getBaseCurrencyCode() { //return Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE, 0); return (string) Mage::app()->getConfig() ->getNode('default/' . Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE); } /** * Retrieve configuration object * * @return Mage_Core_Model_Config */ public function getConfig() { return $this->_config; } /** * Retrieve front controller object * * @return Mage_Core_Controller_Varien_Front */ public function getFrontController() { if (!$this->_frontController) { $this->_initFrontController(); } return $this->_frontController; } /** * Get core cache model * * @return Mage_Core_Model_Cache */ public function getCacheInstance() { if (!$this->_cache) { $this->_initCache(); } return $this->_cache; } /** * Retrieve cache object * * @return Zend_Cache_Core */ public function getCache() { if (!$this->_cache) { $this->_initCache(); } return $this->_cache->getFrontend(); } /** * Loading cache data * * @param string $id * @return mixed */ public function loadCache($id) { return $this->_cache->load($id); } /** * Saving cache data * * @param mixed $data * @param string $id * @param array $tags * @return Mage_Core_Model_App */ public function saveCache($data, $id, $tags=array(), $lifeTime=false) { $this->_cache->save($data, $id, $tags, $lifeTime); return $this; } /** * Remove cache * * @param string $id * @return Mage_Core_Model_App */ public function removeCache($id) { $this->_cache->remove($id); return $this; } /** * Cleaning cache * * @param array $tags * @return Mage_Core_Model_App */ public function cleanCache($tags=array()) { $this->_cache->clean($tags); Mage::dispatchEvent('application_clean_cache', array('tags' => $tags)); return $this; } /** * Check whether to use cache for specific component * * @return boolean */ public function useCache($type=null) { return $this->_cache->canUse($type); } /** * Save cache usage settings * * @param array $data * @return Mage_Core_Model_App */ public function saveUseCache($data) { $this->_cache->saveOptions($data); return $this; } /** * Deletes all session files * */ public function cleanAllSessions() { if (session_module_name()=='files') { $dir = session_save_path(); mageDelTree($dir); } return $this; } /** * Retrieve request object * * @return Mage_Core_Controller_Request_Http */ public function getRequest() { if (empty($this->_request)) { $this->_request = new Mage_Core_Controller_Request_Http(); } return $this->_request; } /** * Request setter * * @param Mage_Core_Controller_Request_Http $request * @return Mage_Core_Model_App */ public function setRequest(Mage_Core_Controller_Request_Http $request) { $this->_request = $request; return $this; } /** * Retrieve response object * * @return Zend_Controller_Response_Http */ public function getResponse() { if (empty($this->_response)) { $this->_response = new Mage_Core_Controller_Response_Http(); $this->_response->headersSentThrowsException = Mage::$headersSentThrowsException; $this->_response->setHeader("Content-Type", "text/html; charset=UTF-8"); } return $this->_response; } /** * Response setter * * @param Mage_Core_Controller_Response_Http $response * @return Mage_Core_Model_App */ public function setResponse(Mage_Core_Controller_Response_Http $response) { $this->_response = $response; return $this; } public function addEventArea($area) { if (!isset($this->_events[$area])) { $this->_events[$area] = array(); } return $this; } public function dispatchEvent($eventName, $args) { $eventName = strtolower($eventName); foreach ($this->_events as $area=>$events) { if (!isset($events[$eventName])) { $eventConfig = $this->getConfig()->getEventConfig($area, $eventName); if (!$eventConfig) { $this->_events[$area][$eventName] = false; continue; } $observers = array(); foreach ($eventConfig->observers->children() as $obsName=>$obsConfig) { $observers[$obsName] = array( 'type' => (string)$obsConfig->type, 'model' => $obsConfig->class ? (string)$obsConfig->class : $obsConfig->getClassName(), 'method'=> (string)$obsConfig->method, 'args' => (array)$obsConfig->args, ); } $events[$eventName]['observers'] = $observers; $this->_events[$area][$eventName]['observers'] = $observers; } if (false===$events[$eventName]) { continue; } else { $event = new Varien_Event($args); $event->setName($eventName); $observer = new Varien_Event_Observer(); } foreach ($events[$eventName]['observers'] as $obsName=>$obs) { $observer->setData(array('event'=>$event)); Varien_Profiler::start('OBSERVER: '.$obsName); switch ($obs['type']) { case 'disabled': break; case 'object': case 'model': $method = $obs['method']; $observer->addData($args); $object = Mage::getModel($obs['model']); $this->_callObserverMethod($object, $method, $observer); break; default: $method = $obs['method']; $observer->addData($args); $object = Mage::getSingleton($obs['model']); $this->_callObserverMethod($object, $method, $observer); break; } Varien_Profiler::stop('OBSERVER: '.$obsName); } } return $this; } /** * Performs non-existent observer method calls protection * * @param object $object * @param string $method * @param Varien_Event_Observer $observer * @return Mage_Core_Model_App * @throws Mage_Core_Exception */ protected function _callObserverMethod($object, $method, $observer) { if (method_exists($object, $method)) { $object->$method($observer); } elseif (Mage::getIsDeveloperMode()) { Mage::throwException('Method "'.$method.'" is not defined in "'.get_class($object).'"'); } return $this; } public function setUpdateMode($value) { $this->_updateMode = $value; } public function getUpdateMode() { return $this->_updateMode; } public function throwStoreException() { throw new Mage_Core_Model_Store_Exception(''); } /** * Set use session var instead of SID for URL * * @param bool $var * @return Mage_Core_Model_App */ public function setUseSessionVar($var) { $this->_useSessionVar = (bool)$var; return $this; } /** * Retrieve use flag session var instead of SID for URL * * @return bool */ public function getUseSessionVar() { return $this->_useSessionVar; } /** * Get either default or any store view * * @return Mage_Core_Model_Store */ public function getAnyStoreView() { $store = $this->getDefaultStoreView(); if ($store) { return $store; } foreach ($this->getStores() as $store) { return $store; } } /** * Set Use session in URL flag * * @param bool $flag * @return Mage_Core_Model_App */ public function setUseSessionInUrl($flag = true) { $this->_useSessionInUrl = (bool)$flag; return $this; } /** * Retrieve use session in URL flag * * @return bool */ public function getUseSessionInUrl() { return $this->_useSessionInUrl; } /** * Allow or disallow single store mode * * @param bool $value * @return Mage_Core_Model_App */ public function setIsSingleStoreModeAllowed($value) { $this->_isSingleStoreAllowed = (bool)$value; return $this; } /** * Prepare array of store groups * can be filtered to contain default store group or not by $withDefault flag * depending on flag $codeKey array keys can be group id or group code * * @param bool $withDefault * @param bool $codeKey * @return array */ public function getGroups($withDefault = false, $codeKey = false) { $groups = array(); if (is_array($this->_groups)) { foreach ($this->_groups as $group) { if (!$withDefault && $group->getId() == 0) { continue; } if ($codeKey) { $groups[$group->getCode()] = $group; } else { $groups[$group->getId()] = $group; } } } return $groups; } /** * Retrieve application installation flag * * @deprecated since 1.2 * @return bool */ public function isInstalled() { return Mage::isInstalled(); } /** * Generate cache tags from cache id * * @deprecated after 1.4.0.0-alpha3, functionality implemented in Mage_Core_Model_Cache * @param string $id * @param array $tags * @return array */ protected function _getCacheTags($tags=array()) { foreach ($tags as $index=>$value) { $tags[$index] = $this->_getCacheId($value); } return $tags; } /** * Get file name with cache configuration settings * * @deprecated after 1.4.0.0-alpha3, functionality implemented in Mage_Core_Model_Cache * @return string */ public function getUseCacheFilename() { return $this->_config->getOptions()->getEtcDir().DS.'use_cache.ser'; } /** * Generate cache id with application specific data * * @deprecated after 1.4.0.0-alpha3, functionality implemented in Mage_Core_Model_Cache * @param string $id * @return string */ protected function _getCacheId($id=null) { if ($id) { $id = $this->prepareCacheId($id); } return $id; } /** * Prepare identifier which can be used as cache id or cache tag * * @deprecated after 1.4.0.0-alpha3, functionality implemented in Mage_Core_Model_Cache * @param string $id * @return string */ public function prepareCacheId($id) { $id = strtoupper($id); $id = preg_replace('/([^a-zA-Z0-9_]{1,1})/', '_', $id); return $id; } /** * Get is cache locked * * @return bool */ public function getIsCacheLocked() { return (bool)$this->_isCacheLocked; } /** * Unset website by id from app cache * * @param null|bool|int|string|Mage_Core_Model_Website $id * @return void */ public function clearWebsiteCache($id = null) { if (is_null($id)) { $id = $this->getStore()->getWebsiteId(); } elseif ($id instanceof Mage_Core_Model_Website) { $id = $id->getId(); } elseif ($id === true) { $id = $this->_website->getId(); } if (!empty($this->_websites[$id])) { $website = $this->_websites[$id]; unset($this->_websites[$website->getWebsiteId()]); unset($this->_websites[$website->getCode()]); } } }
Fatal error: Uncaught Error: Class 'Mage_Core_Model_App' not found in /home/mendipla/public_html/app/Mage.php:670 Stack trace: #0 /home/mendipla/public_html/index.php(83): Mage::run('', 'store') #1 {main} thrown in /home/mendipla/public_html/app/Mage.php on line 670