Alpha Framework alpha--util--feeds
[ class tree: alpha--util--feeds ] [ index: alpha--util--feeds ] [ all elements ]

Class: RSS

Source Location: /util/feeds/RSS.inc

Class RSS

Class Overview

RSS 1.0 class for synication

Located in /util/feeds/RSS.inc [line 49]

AlphaFeed
   |
   --RSS
Author(s):
  • John Collins <dev@alphaframework.org>
Information Tags:
Version:  $Id: RSS.inc 1341 2011-03-17 15:02:02Z johnc $
Copyright:  

Copyright (c) 2011, John Collins (founder of Alpha Framework). All rights reserved.

 Redistribution and use in source and binary forms, with or
 without modification, are permitted provided that the
 following conditions are met:

 * Redistributions of source code must retain the above
   copyright notice, this list of conditions and the
   following disclaimer.
 * Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the
   following disclaimer in the documentation and/or other
   materials provided with the distribution.
 * Neither the name of the Alpha Framework nor the names
   of its contributors may be used to endorse or promote
   products derived from this software without specific
   prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Since:  1.0
License:  The BSD License

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AlphaFeed

AlphaFeed::$docElement
AlphaFeed::$fieldNameMappings
AlphaFeed::$hasChannel
AlphaFeed::$items
AlphaFeed::$root
AlphaFeed::$rssDoc
AlphaFeed::$tagMap

Inherited From AlphaFeed

AlphaFeed::__construct()
The constructor
AlphaFeed::addBO()
Method for adding a BO to the current feed
AlphaFeed::addItem()
Method for adding an item to a feed
AlphaFeed::createFeedElement()
Method for creating a new feed element
AlphaFeed::createLink()
Method for creating link elements (note that Atom has a different format)
AlphaFeed::createRSSNode()
Method for creating an RSS node with a title, url and description
AlphaFeed::loadBOs()
Method to load all of the BO items to the feed from the database, from the newest to the $limit provided
AlphaFeed::render()
Returns the formatted XML for the feed as a string
AlphaFeed::setFieldMappings()
Method for mapping BO fieldnames to feed field names

[ Top ]
Property Summary
string   $nameSpace   The XML namespace
string   $rootTag   The actual root tag used in each feed type

[ Top ]
Method Summary
void   addItem()   (non-PHPdoc)
void   createRSSNode()   (non-PHPdoc)

[ Top ]
Properties
string   $nameSpace = 'http://purl.org/rss/1.0/' [line 56]

The XML namespace

API Tags:
Access:  protected

Information Tags:
Since:  1.0

Redefinition of:
AlphaFeed::$nameSpace
The XML namespace to use in the generated feed

[ Top ]
string   $rootTag = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" />' [line 72]

The actual root tag used in each feed type

API Tags:
Access:  protected

Information Tags:
Since:  1.0

Redefinition of:
AlphaFeed::$rootTag
The actual root tag used in each feed type

[ Top ]
Methods
addItem  [line 97]

  void addItem( $title, $link, [ $description = null], [ $pubDate = null], [ $id = null]  )

(non-PHPdoc)

Parameters:
   $title: 
   $link: 
   $description: 
   $pubDate: 
   $id: 

API Tags:
See:  alpha/util/feeds/AlphaFeed::addItem()
Access:  protected


Redefinition of:
AlphaFeed::addItem()
Method for adding an item to a feed

[ Top ]
createRSSNode  [line 106]

  void createRSSNode( $type, $parent, $title, $url, $description, [ $pubDate = null]  )

(non-PHPdoc)

Parameters:
   $type: 
   $parent: 
   $title: 
   $url: 
   $description: 
   $pubDate: 

API Tags:
See:  alpha/util/feeds/AlphaFeed::createRSSNode()
Access:  protected


Redefinition of:
AlphaFeed::createRSSNode()
Method for creating an RSS node with a title, url and description

[ Top ]

Documentation generated on Thu, 17 Mar 2011 16:44:46 +0000 by phpDocumentor 1.4.3