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