Login   Register  
PHP Classes
elePHPant
Icontem

RSS 1.0 creator: RSS 1.0 creator class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2002-05-05 (12 years ago) RSS 2.0 feedStarStarStar 58%Total: 3,201 This week: 1All time: 1,020 This week: 1,428Down
Version License Categories  
class_rss 1.0.0BSD LicenseXML, Content management
Description Author  

Creates a valid RSS 1.0 document.

Usage:
new RSS ( void )

Methods:

addDataSource ( dataSource ) - add new dataSource to RSS instance
dataSource: array of associated arrays (item)
item: associated array:
-> title : title of item (str, suggest. max 100 chars for RSS 0.91 compatiblity)
-> link : url that item links to (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> description : info about item (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addChannel ( channel ) - add Channel info
channel : associated array
-> about: url where this channel will be located (url of RSS file)
-> title: title of channel (str, suggest. max 40 chars for RSS 0.91 compatiblity)
-> link: link to root of site / section that this RSS serves (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> description: info about this channel (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addImage ( image ) - add Image info (optional)
image : associated array
-> title : title of image (str, suggest. max 100 chars for RSS 0.91 compatiblity)
-> link : url where image should link to (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> url : url where image is located (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addItem ( item ) - adds a single item to the RSS, see item structure, above.

get( void ) - returns the RSS document as a string

Limitations:
* Currently does not support the optional <textInput> core element.
* Arguments are not validated

Picture of Aral Balkan
Name: Aral Balkan <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 90241 in United Kingdom United Kingdom
Week rank: 1111 Down42 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Plain text file class_rss.php Class RSS 1.0 creator class
Accessible without login Plain text file class_rss_test.php Example Test file for class_rss - creates the basic sample RSS 1.0 document in the official RSS specification document
Accessible without login Plain text file license.txt Lic. This class is released under the modified BSD license. Please see license.txt.

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,201All time:1,020
 This week:1This week:1,428Down
 User Ratings  
 
 All time
Utility:85%StarStarStarStarStar
Consistency:73%StarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1022