setBackend example


    public function factory($backend$frontendOptions$backendOptions, ShopwareReleaseStruct $release)
    {
        $backendOptions['release'] = $release;

        $backend = $this->createBackend($backend$backendOptions);
        $cacheCore = $this->createCacheCore($frontendOptions);

        $cacheCore->setBackend($backend);

        Zend_Locale_Data::setCache($cacheCore);
        Zend_Db_Table_Abstract::setDefaultMetadataCache($cacheCore);

        return $cacheCore;
    }

    /** * @param string $backend * @param array $backendOptions * * @return Zend_Cache_Backend */

        }
        if (is_string($frontend)) {
            $frontendObject = self::_makeFrontend($frontend$frontendOptions$customFrontendNaming$autoload);
        } else {
            if (is_object($frontend)) {
                $frontendObject = $frontend;
            } else {
                self::throwException('frontend must be a frontend name (string) or an object');
            }
        }
        $frontendObject->setBackend($backendObject);
        return $frontendObject;
    }

    /** * Backend Constructor * * @param string $backend * @param array $backendOptions * @param boolean $customBackendNaming * @param boolean $autoload * @return Zend_Cache_Backend */
Home | Imprint | This part of the site doesn't use cookies.