PHP Classes

Classes of Aral Balkan

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Aral Balkan (1)  >  Mission progress status  >  Reputation  
Picture of Aral Balkan
Name: Aral Balkan <contact>
Classes: 1
Country: United Kingdom
Age: ???
All time rank: 99346 in United Kingdom
Week rank: 181 Up5 in United Kingdom Up
All time users: 3214
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image RSS 1.0 creator  
RSS 1.0 creator class
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


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z