PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/MantisBT/library/rssbuilder/class.RSSItem.inc.php

https://bitbucket.org/crypticrod/sr_wp_code
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
  1. <?php
  2. require_once 'class.RSSBase.inc.php';
  3. /**
  4. * Class for creating an RSS-feed
  5. * @author Michael Wimmer <flaimo@gmail.com>
  6. * @category flaimo-php
  7. * @copyright Copyright Š 2002-2008, Michael Wimmer
  8. * @license GNU General Public License v3
  9. * @link http://code.google.com/p/flaimo-php/
  10. * @package RSS
  11. * @version 2.2.1
  12. */
  13. class RSSItem extends RSSBase {
  14. protected $about;
  15. protected $title;
  16. protected $link;
  17. protected $description;
  18. protected $subject;
  19. protected $date;
  20. protected $author;
  21. protected $comments;
  22. protected $image;
  23. function __construct($about = '',
  24. $title = '',
  25. $link = '',
  26. $description = '',
  27. $subject = '',
  28. $date = 0,
  29. $author = '',
  30. $comments = '',
  31. $image = '') {
  32. parent::__construct();
  33. parent::setVar($about, 'about', 'string');
  34. parent::setVar($title, 'title', 'string');
  35. parent::setVar($link, 'link', 'string');
  36. parent::setVar($description, 'description', 'string');
  37. parent::setVar($subject, 'subject', 'string');
  38. parent::setVar($date, 'date', 'int');
  39. parent::setVar($author, 'author', 'string');
  40. parent::setVar($comments, 'comments', 'string');
  41. parent::setVar($image, 'image', 'string');
  42. } // end constructor
  43. public function getAbout() {
  44. return parent::getVar('about');
  45. } // end function
  46. public function getTitle() {
  47. return parent::getVar('title');
  48. } // end function
  49. public function getLink() {
  50. return parent::getVar('link');
  51. } // end function
  52. public function getDescription() {
  53. return parent::getVar('description');
  54. } // end function
  55. public function getSubject() {
  56. return parent::getVar('subject');
  57. } // end function
  58. public function getItemDate() {
  59. return parent::getVar('date');
  60. } // end function
  61. public function getAuthor() {
  62. return parent::getVar('author');
  63. } // end function
  64. public function getComments() {
  65. return parent::getVar('comments');
  66. } // end function
  67. public function getImage() {
  68. return parent::getVar('image');
  69. } // end function
  70. } // end class
  71. ?>