print feedItem

Stores an item from an RSS feed. If the feed item is from an RSS2 feed then the parsed XML item can be used with the factory method.

// set properties
$oItem = new feedItem();
$oItem->setTitle()->setDescription();

// set from a parsed array
$oItem = new feedItem();
$oItem->loadFromArray($array);

// set from a SimpleXMLElement from an RSS2 feed
$oItem feedItem::factoryFromXml($inXML);

Methods

public __construct()

Creates a new feedItem

public reset()

Resets the object

public static factoryFromXml($inXml)

Creates a new instance of feedItem from the $inXml fragment

public loadFromXml($inXml)

Load properties from a SimpleXML fragment

// rss item xml

    
    ...

public loadFromArray([$inData = array()])

Loads properties from an associative array

public isModified()

Returns true if object has been modified

public setModified([$inStatus = true])

Set $_Modified to $inStatus

public getTitle()

Returns the title

public setTitle($inTitle)

Set title to $inTitle

public getDescription()

Returns the link description / summary

public setDescription($inDescription)

Set the link description / summary

Return the link

Set the item link

public getGuid()

Return the globally unique ID

public setGuid($inGuid)

Set the globally unique ID

public getPublishDate()

Return the publish date

public setPublishDate($inPublishDate)

Set publish date

<  1  >