SproutCMS

This is the code documentation for the SproutCMS project

function parse()

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

Usage

array RssFeed::parse ( string $url );

Arguments

  1. string $url
    Feed to load and parse

Return value

  • array
    News items