Zend Framework  3.0
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
FeedSet Class Reference

Public Member Functions

 addLinks (DOMNodeList $links, $uri)
 Import a DOMNodeList from any document containing a set of links for alternate versions of a document, which will normally refer to RSS/RDF/Atom feeds for the current document.
 
 offsetGet ($offset)
 Supports lazy loading of feeds using Reader::import() but delegates any other operations to the parent class.
 

Public Attributes

 $rss = null
 
 $rdf = null
 
 $atom = null
 

Protected Member Functions

 absolutiseUri ($link, $uri=null)
 Attempt to turn a relative URI into an absolute URI.
 
 canonicalizePath ($path)
 Canonicalize relative path.
 

Member Function Documentation

absolutiseUri (   $link,
  $uri = null 
)
protected

Attempt to turn a relative URI into an absolute URI.

addLinks ( DOMNodeList  $links,
  $uri 
)

Import a DOMNodeList from any document containing a set of links for alternate versions of a document, which will normally refer to RSS/RDF/Atom feeds for the current document.

All such links are stored internally, however the first instance of each RSS, RDF or Atom type has its URI stored as a public property as a shortcut where the use case is simply to get a quick feed ref.

Note that feeds are not loaded at this point, but will be lazy loaded automatically when each links 'feed' array key is accessed.

Parameters
DOMNodeList$links
string$uri
Returns
void
canonicalizePath (   $path)
protected

Canonicalize relative path.

offsetGet (   $offset)

Supports lazy loading of feeds using Reader::import() but delegates any other operations to the parent class.

Parameters
string$offset
Returns
mixed

Member Data Documentation

$atom = null
$rdf = null
$rss = null