FeedFinder::_link_rel_feeds PHP Метод

    function _link_rel_feeds()
    {
        $links = $this->_tags('link');
        $link_count = count($links);
        // now figure out which one points to the RSS file
        $href = array();
        for ($n = 0; $n < $link_count; $n++) {
            if (strtolower($links[$n]['rel']) == 'alternate') {
                if (in_array(strtolower($links[$n]['type']), $this->_feed_types)) {
                    $href[] = $links[$n]['href'];
                }
                /* if */
            }
            /* if */
        }
        /* for */
        return $href;
    }