public function getPageFeeds()
    {
        if (!$this->parser) {
            return;
        }

        $nodes = $this->parser->find('link');

        $feeds = array();

        $types = array(
            'application/rss+xml',
            'application/atom+xml',
            'text/xml',
        );

        foreach ($nodes as $node) {
            $type = strtolower($node->getAttribute('type'));

            if (in_array($type, $types)) {
                $feeds[] = $node->getAttribute('href');
            }
        }

        return $feeds;
    }
public function getPageFeeds()
    {
        if (!$this->parser) {
            return;
        }

        $nodes = $this->parser->find('link');

        $feeds = array();

        $types = array(
            'application/rss+xml',
            'application/atom+xml',
            'text/xml',
        );

        foreach ($nodes as $node) {
            $type = strtolower($node->getAttribute('type'));

            if (in_array($type, $types)) {
                $feeds[] = $node->getAttribute('href');
            }
        }

        return $feeds;
    }
public function getPageFeeds ( ) { if ( ! $ this -> parser ) { return ; } $ nodes = $ this -> parser -> find ( 'link' ) ; $ feeds = array ( ) ; $ types = array ( 'application/rss+xml' , 'application/atom+xml' , 'text/xml' , ) ; foreach ( $ nodes as $ node ) { $ type = strtolower ( $ node -> getAttribute ( 'type' ) ) ; if ( in_array ( $ type , $ types ) ) { $ feeds [ ] = $ node -> getAttribute ( 'href' ) ; } } return $ feeds ; }
Get rss feeds urls

@return array feeds
Get rss feeds urls