get_item_tags example


    public function get_id($hash = false, $fn = 'md5')
    {
        if (!$hash)
        {
            if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'id'))
            {
                return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
            }
            elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'id'))
            {
                return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
            }
            elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'guid'))
            {
                return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
            }
            
Home | Imprint | This part of the site doesn't use cookies.