setBackend($backendObject); return $frontendObject; } /** * Throw an exception * * Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic */ public static function throwException($msg) { // For perfs reasons, we use this dynamic inclusion require_once 'Zend/Cache/Exception.php'; throw new Zend_Cache_Exception($msg); } /** * Normalize frontend and backend names to allow multiple words TitleCased * * @param string $name * @return string */ protected static function _normalizeName($name) { $name = ucfirst(strtolower($name)); $name = str_replace(array('-', '_', '.'), ' ', $name); $name = ucwords($name); $name = str_replace(' ', '', $name); return $name; } }