Squiz Matrix
4.12.2
|
Public Member Functions | |
RSS_Feed_Writer () | |
addItems ($items) | |
addChannel ($channel) | |
addImage ($image) | |
setTypeVersion ($type='', $version='') | |
getRSSString ($header=TRUE, $encoding='iso-8859-1') | |
_isTypeVersionSet () | |
Data Fields | |
$items = Array() | |
$image = Array() | |
$channel = Array() | |
$rss = '' | |
$type = '' | |
$version = '' | |
Definition at line 29 of file rss_feed_writer.inc.
_isTypeVersionSet | ( | ) |
Checks if the type and version are set or not and returns TRUE if set else triggers error
Definition at line 428 of file rss_feed_writer.inc.
addChannel | ( | $channel | ) |
Adds the channel info into the channel array
array | $channel | the channel to be added into the array |
Definition at line 120 of file rss_feed_writer.inc.
addImage | ( | $image | ) |
Adds the image info into the image array
array | $image | the image to be added into the array |
Definition at line 148 of file rss_feed_writer.inc.
addItems | ( | $items | ) |
Assigns the class variable items
array | $items | the items to be added into the array |
Definition at line 93 of file rss_feed_writer.inc.
getRSSString | ( | $header = TRUE , |
|
$encoding = 'iso-8859-1' |
|||
) |
Gets the RSS in a string format for all of the information saved like the channel, image and items
boolean | $header | if an appropriate header has to be included or not. Defaults to TRUE |
string | $endoing | encoding attribute in XML declaration. Default is Western European(ISO) |
Definition at line 216 of file rss_feed_writer.inc.
RSS_Feed_Writer | ( | ) |
Constructor
Definition at line 79 of file rss_feed_writer.inc.
setTypeVersion | ( | $type = '' , |
|
$version = '' |
|||
) |
Saves the type and version of the RSS to be generated
string | $type | the type of RSS to be created |
string | $version | the version of the RSS |
Definition at line 177 of file rss_feed_writer.inc.