Builds and outputs RSS feeds.
NOTE: Feed images are rarely dsplayed throughout most feed readers. Date function requires RFC822
| package | dstruct_rss |
|---|---|
| author | Shane |
| todo | This package could do with a re-write. Documentation isn't clear either. |
__construct()
addItem(\RSSItem $item)
getCategory() : string
Allows for the ability to add one or multiple categories that a channel belongs to
stringgetCopyright() : string
The copyright notice for the content of the channel
stringgetDescrip() : string
The description of the content of the channel
stringgetDocs() : string
URL for the documentation for the format of the RSS feed
stringgetGenerator() : string
The program that creates the channel
stringgetImage() : string
Gets an image for the content of the channel
stringgetImageDescrip() : string
stringgetImageHeight() : integer
integergetImageLink() : string
stringgetImageTitle() : string
stringgetImageURL() : string
stringgetImageWidth() : integer
integergetLanguage() : string
stringgetLastBuildDate() : integer
Should be UTS date?
integergetManagingEditor() : string
An e-mail address for the editorial content producer
stringgetPubDateUTS() : integer
A date that represents the publication date for the content in the channel
integergetRating() : string
PICS rating for the channel
stringgetSkipDays() : integer
Tells aggregators to skip for specified days.
integergetSkipHours() : integer
Tells aggregators to skip for specified hours
integergetTTL() : integer
(Time to Live) which tells the length of time the channel can be cached. In seconds?
integergetTextInput() : string
A text input field that can be displayed with the channel
stringgetTitle() : string
The title of the content of the channel
stringgetURL() : string
Gets the url of the channel
stringgetWebMaster() : string
An e-mail address for the web master
stringoutput()
Creates the rss feed xml.
saveAsFile(string $filepath, string $filename)
Saves the file to the specified filepath Function checks for valid path If the file already exists, then it is overwritten, else a new file is created Checks for backslash at the end of the filepath, if returned false, then added
string
string
setCategory(string $category)
Allows for the ability to add one or multiple categories that a channel belongs to
string
setCopyright(string $copyright)
The copyright notice for the content of the channel
string
setDescrip(string $descrip)
Sets a description for the channel
string
setDocs(string $docs)
URL for the documentation for the format of the RSS feed
string
setGenerator(string $generator)
The program that creates the channel
string
setImageDescrip(string $imagedescrip)
Sets an image in the channel
string
setImageHeight(integer $imageheight)
Sets an image in the channel
integer
setImageLink(string $imagelink)
Sets an image in the channel
string
setImageTitle(string $imagetitle)
Sets an image in the channel
string
setImageURL(string $imageurl)
Sets an image in the channel
string
setImageWidth(integer $imagewidth)
Sets an image in the channel
integer
setItemAmount(integer $itemamount)
The number of Items to be displayed in the Feed, Default is 200.
integer
setLanguage(string $language)
Sets the language of the content in the channel.
| todo | What format?? |
|---|
string
setLastBuildDate(integer $lastbuilddate)
The last date and time that the content was changed
integerUTS timestamp
setManagingEditor(string $managingeditor)
An e-mail address for the editorial content producer
string
setPubDateString(string $pubdate)
The pubDate is the date that the item was published Can be entered in any format getPubDateString method changes to UTS and calls getPubDateUTS method to format
string
setPubDateUTS(integer $pubdate)
The pubDate is the date that the item was published. Entered in UTS and formated to RFC822
integer
setRating(string $rating)
PICs rating for the channel
string
setSkipDays(integer $skipdays)
Tells aggregators to skip for specified day
| todo | What does this mean? |
|---|
integer
setSkipHours(integer $skiphours)
Tells aggregators to skip for specified hour.
| todo | What does this mean? |
|---|
integer
setTTL(integer $ttl)
(Time To Live) which tells the length of time the channel can be cached
integerIn seconds?
setTextInput(string $textinput)
A text nput field that can be displayed with the channel
string
setTitle(string $title)
Sets a title of the channel
string
setURL(string $url)
Sets the url for the channel
string
setWebMaster(string $webmaster)
An e-mail address for the web master
string
sortItems(string $element, string $sort_direction, string $caseinsensitive, string $params, string $astime)
| see | \ObjCollection::sortObjects() |
|---|
stringElement to sort by
string
string
string
string
validate() : boolean
Returns false if an RSS Feed title, description, URL or pubdate have not been entered.
| todo | Should be more specific about what is missing! |
|---|---|
| todo | Should throw an error, rather than use trigger_error() |
booleanActually, only returns true if successful, otherwise, triggers and error.$category : string
| see | \getCategory() |
|---|
$copyright : string
| see | \getCopyright() |
|---|
$descrip : string
$docs : string
| see | \getDocs() |
|---|
$generator : string
| see | \getGenerator() |
|---|
$image : string
| see | \getImage() |
|---|
$imagedescrip : string
$imageheight : integer
$imagelink : string
| see | \getImageLink() |
|---|
$imagetitle : string
| see | \getImageTitle() |
|---|
$imageurl : string
| see | \getImageURL() |
|---|
$imagewidth : integer
| see | \getImageWidth() |
|---|
$itemamount
| see | var integer. |
|---|
$items : \RSSItems
| see | \__construct() |
|---|
$language : string
| see | \getLanguage() |
|---|
$lastbuilddate : string
$managingeditor : string
$pubdate : integer
| see | \getPubDate() |
|---|
$skipdays : string
| see | \getSkipdays |
|---|
$skiphours : integer
| see | \getSkiphours() |
|---|
$textinput : string
| see | \getTextInput() |
|---|
$title : string
| see | \getTitle() |
|---|
$ttl : integer
| see | \getTTL() |
|---|
$url : string
| see | \getURL() |
|---|
$webmaster : string
| see | \getWebMaster() |
|---|