SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class RssFeed

Copyright (C) 2017 Karmabunny Pty Ltd.

This file is a part of SproutCMS.

SproutCMS is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, either
version 2 of the License, or (at your option) any later version.

For more information, visit <http://getsproutcms.com>.

This class was originally from Kohana 2.3.4
Copyright 2007-2008 Kohana Team

Functions

NameVisibilityDescription
parsepublic (static)Download and parse a RSS feed

public parse

array RssFeed::parse ( string $url );

Download and parse a RSS feed

Supports a subset of RSS 2.0 and also a subset of MRSS (Media RSS) 2.0

News items are returned as arrays, with the following keys
    name     Title
    text     Short desc of the news post. Plain text
    date     DateTime object
    url      Link URL
    image    Optional image URL