SMWRSSItem Class Reference
[SMWQuery]

Represents a single entry, or item, in an RSS feed. More...

List of all members.

Public Member Functions

 __construct (Title $t, $c, $d)
 Constructor for a single item in the feed.
 uri ()
 Get function for the Item URI.
 text ()
 Creates the RSS output for the single item.

Private Attributes

 $uri
 $label
 $creator
 $date
 $articlename
 $title


Detailed Description

Represents a single entry, or item, in an RSS feed.

Useful since those items are iterated more than once when serialising RSS.

Todo:
This code still needs cleanup, it's a mess.

Definition at line 173 of file SMW_QP_RSSlink.php.


Constructor & Destructor Documentation

SMWRSSItem::__construct ( Title $  t,
c,
d 
)

Constructor for a single item in the feed.

Requires the URI of the item.

Definition at line 185 of file SMW_QP_RSSlink.php.

References $date, and uri().


Member Function Documentation

SMWRSSItem::uri (  ) 

Get function for the Item URI.

Definition at line 220 of file SMW_QP_RSSlink.php.

Referenced by __construct(), and text().

SMWRSSItem::text (  ) 

Creates the RSS output for the single item.

TODO is there maybe a way in the parser options to make the URLs absolute?

Definition at line 227 of file SMW_QP_RSSlink.php.

References $creator, $date, $smwgRSSWithPages, $smwgShowFactbox, $wgServer, smwfXMLContentEncode(), and uri().


Member Data Documentation

SMWRSSItem::$uri [private]

Definition at line 175 of file SMW_QP_RSSlink.php.

SMWRSSItem::$label [private]

Definition at line 176 of file SMW_QP_RSSlink.php.

SMWRSSItem::$creator [private]

Definition at line 177 of file SMW_QP_RSSlink.php.

Referenced by text().

SMWRSSItem::$date [private]

Definition at line 178 of file SMW_QP_RSSlink.php.

Referenced by __construct(), and text().

SMWRSSItem::$articlename [private]

Definition at line 179 of file SMW_QP_RSSlink.php.

SMWRSSItem::$title [private]

Definition at line 180 of file SMW_QP_RSSlink.php.


The documentation for this class was generated from the following file:

Generated on Thu Feb 9 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6