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