Property | Type | Description | |
---|---|---|---|
$arrData | array | Data | |
$arrItems | array | Items | |
$strName | string | Feed name |
Method | Description | |
---|---|---|
__construct ( string $strName ) | Store the feed name (without file extension) | |
__get ( string $strKey ) : mixed | null | Return an object property | |
__isset ( string $strKey ) : boolean | Check whether a property is set | |
__set ( string $strKey, mixed $varValue ) | Set an object property | |
addItem ( |
Add an item | |
generateAtom ( ) : string | Generate an Atom feed and return it as XML string | |
generateRss ( ) : string | Generate an RSS 2.0 feed and return it as XML string |
Method | Description | |
---|---|---|
adjustPublicationDate ( ) | Adjust the publication date |
public __construct ( string $strName ) | ||
$strName | string | The feed name |
public addItem ( |
||
$objItem | The feed item object |
protected adjustPublicationDate ( ) |
public generateAtom ( ) : string | ||
return | string | The Atom feed markup |
public generateRss ( ) : string | ||
return | string | The RSS feed markup |