SimplePie_Cache_File example


    public static function get_handler($location$filename$extension)
    {
        $type = explode(':', $location, 2);
        $type = $type[0];
        if (!empty(self::$handlers[$type]))
        {
            $class = self::$handlers[$type];
            return new $class($location$filename$extension);
        }

        return new SimplePie_Cache_File($location$filename$extension);
    }

    /** * Create a new SimplePie_Cache object * * @deprecated Use {@see get_handler} instead */
    public function create($location$filename$extension)
    {
        trigger_error('Cache::create() has been replaced with Cache::get_handler(). Switch to the registry system to use this.', E_USER_DEPRECATED);
        return self::get_handler($location$filename$extension);
    }
Home | Imprint | This part of the site doesn't use cookies.