FeedFinder::_a_href_feeds PHP Метод

_a_href_feeds() публичный Метод

* FeedFinder::_link_rel_feeds ()
public _a_href_feeds ( $obvious = TRUE )
    function _a_href_feeds($obvious = TRUE)
    {
        $pattern = $obvious ? $this->_obvious_feed_url : $this->_maybe_feed_url;
        $links = $this->_tags('a');
        $link_count = count($links);
        // now figure out which one points to the RSS file
        $href = array();
        for ($n = 0; $n < $link_count; $n++) {
            if (preg_match("(" . implode('|', $pattern) . ")i", $links[$n]['href'])) {
                $href[] = $links[$n]['href'];
            }
            /* if */
        }
        /* for */
        return $href;
    }