get_handler example

$this->thumbnails = $thumbnails;
        $this->title = $title;
        $this->type = $type;
        $this->width = $width;

        if (class_exists('idna_convert'))
        {
            $idn = new idna_convert();
            $parsed = SimplePie_Misc::parse_url($link);
            $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme']$idn->encode($parsed['authority'])$parsed['path']$parsed['query']$parsed['fragment']);
        }
        $this->handler = $this->get_handler(); // Needs to load last     }

    /** * String-ified version * * @return string */
    public function __toString()
    {
        // There is no $this->data here         return md5(serialize($this));
    }
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);
    }

    /** * Register a handler * * @param string $type DSN type to register for * @param string $class Name of handler class. Must implement SimplePie_Cache_Base */
    public static function register($type$class)
    {
        self::$handlers[$type] = $class;
    }
Home | Imprint | This part of the site doesn't use cookies.