SproutCMS

This is the code documentation for the SproutCMS project

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

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-04
**/
class NewClassName extends RssFeed {
    
    /**
    * 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
    **/
    public function parse (string $url) {
        // Method code goes here
    }
    
}
?>