get_base example


    public function get_title()
    {
        if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
        {
            return $this->sanitize($return[0]['data']$this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs']))$this->get_base($return[0]));
        }
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'title'))
        {
            return $this->sanitize($return[0]['data']$this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs']))$this->get_base($return[0]));
        }
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title'))
        {
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
        }
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title'))
        {
            

        if (isset($this->data['child'][$namespace][$tag]))
        {
            return $this->data['child'][$namespace][$tag];
        }

        return null;
    }

    public function get_base($element = array())
    {
        return $this->item->get_base($element);
    }

    public function sanitize($data$type$base = '')
    {
        return $this->item->sanitize($data$type$base);
    }

    public function get_item()
    {
        return $this->item;
    }

    
/** * Get the base URL value from the parent feed * * Uses `<xml:base>` * * @param array $element * @return string */
    public function get_base($element = array())
    {
        return $this->feed->get_base($element);
    }

    /** * Sanitize feed data * * @access private * @see SimplePie::sanitize() * @param string $data Data to sanitize * @param int $type One of the SIMPLEPIE_CONSTRUCT_* constants * @param string $base Base URL to resolve URLs against * @return string Sanitized data */
if ($this->file->method & SIMPLEPIE_FILE_SOURCE_REMOTE)
        {
            $sniffer = $this->registry->create('Content_Type_Sniffer', array($this->file));
            if ($sniffer->get_type() !== 'text/html')
            {
                return null;
            }
        }

        if ($type & ~SIMPLEPIE_LOCATOR_NONE)
        {
            $this->get_base();
        }

        if ($type & SIMPLEPIE_LOCATOR_AUTODISCOVERY && $working = $this->autodiscovery())
        {
            return $working[0];
        }

        if ($type & (SIMPLEPIE_LOCATOR_LOCAL_EXTENSION | SIMPLEPIE_LOCATOR_LOCAL_BODY | SIMPLEPIE_LOCATOR_REMOTE_EXTENSION | SIMPLEPIE_LOCATOR_REMOTE_BODY) && $this->get_links())
        {
            if ($type & SIMPLEPIE_LOCATOR_LOCAL_EXTENSION && $working = $this->extension($this->local))
            {
                
Home | Imprint | This part of the site doesn't use cookies.