YANA 4 PHP Framework
Docs For Class RSS
«entity» RSS feed
This class represents a RSS feed. It offers functionality to publish new feeds.
Examples of usage:
- function rss_foobar($args)
- {
- // create rss feed
- // provide some description for it
- // create 1st item
- // create 2nd item
- // print rss feed
- // when you're done, terminate the program
- exit(0);
- }
- $YANA->setVar('RSS_ACTION', 'rss_foobar')
Located in /plugins/default_library/class_rss.php
Object | --RSS
one or more categories that the channel belongs to
this field is optional
copyright notice of your choice
this field is optional
a CSS stylesheet that formats the channel
this field is optional
a text to describe context and purpose of this channel
this field is mandatory
*.jpg, *.gif, or *.png image to display with the feed
this field is optional
list of one or more items of the channel
this field is optional
language the channel is written in
this field is optional
a link that points to the originating website of the feed
this field is mandatory
mail of person responsible for editorial content
this field is optional
name of the channel, e.g. title of the website the channel refers to
this field is mandatory
"time to live" - a number of minutes that indicates how long a channel can be cached before refreshing from the source
this field is optional
mail of person responsible for technical issues
this field is optional
a XSL transformation that formats the channel
this field is optional
creates and initializes a new instance of this class
Name | Type | Description |
---|---|---|
$item | RSSitem |
The $item has to be a valid RSSitem object.
Returns bool(true) on success and bool(false) on error.
Note: this function does not check for duplicate guid's
This returns this object as a string in RSS 2.0 syntax.
Returns bool(false) and issues an E_USER_NOTICE on error.
Redefinition of: Object::toString()
Inherited From Object
Documentation generated on Sun, 11 Mar 2007 15:02:42 +0100 by phpDocumentor 1.3.1