Items in the RSS feed.

package dstruct_rss
author Shane
todo Could do with a rewrite. Why ID and GUID etc?

 Methods

Class Constructor.

__construct(string $id) 

If an Id is supplied then it is set, if not then an Id is randomly generated and set

Parameters

$id

string

Get the Author of this item.

getAuthor() : string
see \setAuthor()

Returns

string

Get the Category of this item.

getCategory() : string
see \setCategory()

Returns

string

Get the Comments of this item.

getComments() : string
see \setComments()

Returns

string

Get the Description of this item.

getDescrip() : string
see \setDescrip()

Returns

string

Get the guid of this item.

getGuid() : string
see \setGuid()

Returns

string

Set the Id of this item.

getID() : integer
see \setID()

Returns

integer

Get the Pub Date of this item.

getPubDate() : string
see \setPubDate()

Returns

string

Get the Source of this item.

getSource() : string
see \setSource()

Returns

string

Get the Title of this item.

getTitle() : string
see \setTitle()

Returns

string

Set the Author of this item.

setAuthor(string $author) 

Represents the author of the content that is presented within this item group

Parameters

$author

string

Set the Category of this item.

setCategory(string $category) 

Allows the item to be included into one ore more category

Parameters

$category

string

Set the comments of this item.

setComments(string $comments) 

URL of page that contains comments related to the item

Parameters

$comments

string

Set the Description of this item.

setDescrip(string $descrip) 

Contains the main data for the item, this element is used for the body of the weblog post in this case

Parameters

$descrip

string

Set the Guid of this item.

setGuid(string $guid) 

The guid is an element that contains a string that uniquely identifies the item

Parameters

$guid

string

Set the Id of this item.

setID(integer $id) 

An unique identification for the item

Parameters

$id

integer

Set the pub date of this item.

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

Parameters

$pubdate

string

Set the pub date of this item.

setPubDateUTS(integer $pubdate) 

The pubDate is the date that the item was published Entered in UTS and formated to RFC822

Parameters

$pubdate

integer

Set the surce of this item.

setSource(string $source) 

The RSS channel that the item came from

Parameters

$source

string

Set the Title of this item.

setTitle(string $title) 

Parameters

$title

string

Item Validator.

validate() 

Returns false if an Item title or an Item description have not been entered

 Properties

 

$author : string
 

$category : string
 

$comments : string
 

$descrip : string
 

$guid : string
 

$id : integer
   

$pubdate : string
 

$source : string
 

$title : string