Items in the RSS feed.
package | dstruct_rss |
---|---|
author | Shane |
todo | Could do with a rewrite. Why ID and GUID etc? |
__construct(string $id)
If an Id is supplied then it is set, if not then an Id is randomly generated and set
string
setAuthor(string $author)
Represents the author of the content that is presented within this item group
string
setCategory(string $category)
Allows the item to be included into one ore more category
string
setComments(string $comments)
URL of page that contains comments related to the item
string
setDescrip(string $descrip)
Contains the main data for the item, this element is used for the body of the weblog post in this case
string
setGuid(string $guid)
The guid is an element that contains a string that uniquely identifies the item
string
setID(integer $id)
An unique identification for the item
integer
setLink(string $link)
Contains a full URL to the individual page in which the specific item exists in detail
string
setPubDateString(string $pubdate)
The pubDate is the date that the item was published Can be entered in any format recognised by strtotime() 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
setSource(string $source)
The RSS channel that the item came from
string
setTitle(string $title)
string
validate()
Returns false if an Item title or an Item description have not been entered
$category : string
see | \getCategory() |
---|
see | \getComments() |
---|
$descrip : string
see | \getDescrip() |
---|
$guid : string
see | \getGuid() |
---|
$id : integer
see | \__construct() |
---|
$link : string
see | \getLink() |
---|
$pubdate : string
see | \getPubdates() |
---|
$source : string
see | \getSource() |
---|
$title : string
see | \getTitle() |
---|