FeedItem.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * A FeedItem is a part of a FeedCreator feed.
  4. *
  5. * @author Kai Blankenhorn <kaib@bitfolge.de>
  6. * @since 1.3
  7. */
  8. class FeedItem extends HtmlDescribable
  9. {
  10. /**
  11. * Mandatory attributes of an item.
  12. */
  13. public $title, $description, $link;
  14. /**
  15. * Optional attributes of an item.
  16. */
  17. public $author, $authorEmail, $authorURL, $image, $category, $categoryScheme, $comments, $guid, $source, $creator, $contributor, $lat, $long, $thumb;
  18. /**
  19. * Publishing date of an item. May be in one of the following formats:
  20. * RFC 822:
  21. * "Mon, 20 Jan 03 18:05:41 +0400"
  22. * "20 Jan 03 18:05:41 +0000"
  23. * ISO 8601:
  24. * "2003-01-20T18:05:41+04:00"
  25. * Unix:
  26. * 1043082341
  27. */
  28. public $date;
  29. /**
  30. * Add <enclosure> element tag RSS 2.0, supported by ATOM 1.0 too
  31. * modified by : Mohammad Hafiz bin Ismail (mypapit@gmail.com)
  32. * display :
  33. * <enclosure length="17691" url="http://something.com/picture.jpg" type="image/jpeg" />
  34. */
  35. public $enclosure;
  36. /**
  37. * Any additional elements to include as an associated array. All $key => $value pairs
  38. * will be included unencoded in the feed item in the form
  39. * <$key>$value</$key>
  40. * Again: No encoding will be used! This means you can invalidate or enhance the feed
  41. * if $value contains markup. This may be abused to embed tags not implemented by
  42. * the FeedCreator class used.
  43. */
  44. public $additionalElements = Array();
  45. // on hold
  46. // var $source;
  47. }