get_source_tags example


        return $this->item->sanitize($data$type$base);
    }

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

    public function get_title()
    {
        if ($return = $this->get_source_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_source_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_source_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title'))
        {
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
        }
        
Home | Imprint | This part of the site doesn't use cookies.