[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/openpsa/universalfeedcreator/lib/Element/ -> FeedItem.php (source)

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