/MantisBT/library/rssbuilder/class.RSSItem.inc.php
PHP | 82 lines | 61 code | 11 blank | 10 comment | 0 complexity | a6567d105fef7c6aa1bc1fa131c76d3f MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1, GPL-3.0, LGPL-2.0, AGPL-3.0
- <?php
- require_once 'class.RSSBase.inc.php';
- /**
- * Class for creating an RSS-feed
- * @author Michael Wimmer <flaimo@gmail.com>
- * @category flaimo-php
- * @copyright Copyright Š 2002-2008, Michael Wimmer
- * @license GNU General Public License v3
- * @link http://code.google.com/p/flaimo-php/
- * @package RSS
- * @version 2.2.1
- */
- class RSSItem extends RSSBase {
-
- protected $about;
- protected $title;
- protected $link;
- protected $description;
- protected $subject;
- protected $date;
- protected $author;
- protected $comments;
- protected $image;
-
- function __construct($about = '',
- $title = '',
- $link = '',
- $description = '',
- $subject = '',
- $date = 0,
- $author = '',
- $comments = '',
- $image = '') {
- parent::__construct();
- parent::setVar($about, 'about', 'string');
- parent::setVar($title, 'title', 'string');
- parent::setVar($link, 'link', 'string');
- parent::setVar($description, 'description', 'string');
- parent::setVar($subject, 'subject', 'string');
- parent::setVar($date, 'date', 'int');
- parent::setVar($author, 'author', 'string');
- parent::setVar($comments, 'comments', 'string');
- parent::setVar($image, 'image', 'string');
- } // end constructor
- public function getAbout() {
- return parent::getVar('about');
- } // end function
- public function getTitle() {
- return parent::getVar('title');
- } // end function
-
- public function getLink() {
- return parent::getVar('link');
- } // end function
-
- public function getDescription() {
- return parent::getVar('description');
- } // end function
-
- public function getSubject() {
- return parent::getVar('subject');
- } // end function
-
- public function getItemDate() {
- return parent::getVar('date');
- } // end function
-
- public function getAuthor() {
- return parent::getVar('author');
- } // end function
-
- public function getComments() {
- return parent::getVar('comments');
- } // end function
-
- public function getImage() {
- return parent::getVar('image');
- } // end function
- } // end class
- ?>