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