Index of all elements
[ a ]
[ c ]
[ e ]
[ g ]
[ i ]
[ k ]
[ m ]
[ n ]
[ p ]
[ r ]
[ t ]
[ v ]
[ x ]
[ _ ]
a
- addBase
- in file Type.php, method XML_Feed_Parser_Type::addBase()
getBase gets us the xml:base data. We then need to process that with regard to our current link. This function does that and returns the link in as complete a form as possible.
- Atom.php
- procedural page Atom.php
- AtomElement.php
- procedural page AtomElement.php
top
c
- $compatMap
- in file RSS2.php, variable XML_Feed_Parser_RSS2::$compatMap
Here we map some elements to their atom equivalents. This is going to be quite tricky to pull off effectively (and some users' methods may vary) but is worth trying. The key is the atom version, the value is RSS2.
- $compatMap
- in file RSS2Element.php, variable XML_Feed_Parser_RSS2Element::$compatMap
Here we map some elements to their atom equivalents. This is going to be quite tricky to pull off effectively (and some users' methods may vary) but is worth trying. The key is the atom version, the value is RSS2.
- $compatMap
- in file RSS1Element.php, variable XML_Feed_Parser_RSS1Element::$compatMap
Here we map some elements to their atom equivalents. This is going to be quite tricky to pull off effectively (and some users' methods may vary) but is worth trying. The key is the atom version, the value is RSS1.
- $compatMap
- in file RSS1.php, variable XML_Feed_Parser_RSS1::$compatMap
Here we map some elements to their atom equivalents. This is going to be quite tricky to pull off effectively (and some users' methods may vary) but is worth trying. The key is the atom version, the value is RSS2.
- $compatMap
- in file AtomElement.php, variable XML_Feed_Parser_AtomElement::$compatMap
Here we provide a few mappings for those very special circumstances in which it makes sense to map back to the RSS2 spec. Key is RSS2 version value is an array consisting of the equivalent in atom and any attributes needed to make the mapping.
- $compatMap
- in file Atom.php, variable XML_Feed_Parser_Atom::$compatMap
Here we provide a few mappings for those very special circumstances in which it makes sense to map back to the RSS2 spec. Key is RSS2 version value is an array consisting of the equivalent in atom and any attributes needed to make the mapping.
- count
- in file Type.php, method XML_Feed_Parser_Type::count()
This function will tell us how many times the element $type appears at this level of the feed.
- current
- in file Parser.php, method XML_Feed_Parser::current()
Return XML_Feed_Type object for current element
top
top
g
- getAuthor
- in file RSS1.php, method XML_Feed_Parser_RSS1::getAuthor()
Dublin Core provides the dc:creator, dc:contributor, and dc:publisher elements for defining authorship in RSS1. We will try each of those in turn in order to simulate the atom author element and will return it as text.
- getAuthor
- in file AtomElement.php, method XML_Feed_Parser_AtomElement::getAuthor()
author data at the entry level is more complex than at the feed level.
- getBase
- in file Type.php, method XML_Feed_Parser_Type::getBase()
We will often need to extract the xml:base values that apply to a link. This method iterates through the heirarchy and extracts the relevant attributes, and then combines them.
- getCategory
- in file Type.php, method XML_Feed_Parser_Type::getCategory()
There is no single way of declaring a category in RSS1 or Atom as there is in RSS2.
- getCategory
- in file RSS2.php, method XML_Feed_Parser_RSS2::getCategory()
The category element is a simple text construct which can occur any number of times. We allow access by offset or access to an array of results.
- getCloud
- in file RSS2.php, method XML_Feed_Parser_RSS2::getCloud()
The cloud element is rarely used. It is designed to provide some details of a location to update the feed.
- getContent
- in file AtomElement.php, method XML_Feed_Parser_AtomElement::getContent()
This element may or may not be present. It cannot be present more than once. It may have a 'src' attribute, in which case there's no content If not present, then the entry must have link with rel="alternate".
- getContent
- in file RSS1Element.php, method XML_Feed_Parser_RSS1Element::getContent()
The official way to include full content in an RSS1 entry is to use the content module's element 'encoded'. Often, however, the 'description' element is used instead. We will offer that as a fallback.
- getDate
- in file Type.php, method XML_Feed_Parser_Type::getDate()
Get a date construct. We use PHP's strtotime to return it as a unix datetime
- getEnclosure
- in file RSS2Element.php, method XML_Feed_Parser_RSS2Element::getEnclosure()
The RSS2 spec is ambiguous as to whether an enclosure element must be unique in a given entry. For now we will assume it needn't, and allow for an offset.
- getEnclosure
- in file AtomElement.php, method XML_Feed_Parser_AtomElement::getEnclosure()
The Atom spec doesn't provide for an enclosure element, but it is generally supported using the link element with rel='enclosure'.
- getEnclosure
- in file RSS1Element.php, method XML_Feed_Parser_RSS1Element::getEnclosure()
How RSS1 should support for enclosures is not clear. For now we will return false.
- getEntryById
- in file Parser.php, method XML_Feed_Parser::getEntryById()
As well as allowing the items to be iterated over we want to allow
- getEntryById
- in file RSS2.php, method XML_Feed_Parser_RSS2::getEntryById()
This is not really something that will work with RSS2 as it does not have clear restrictions on the global uniqueness of IDs. But we can emulate it by allowing access based on the 'guid' element.
- getEntryById
- in file Atom.php, method XML_Feed_Parser_Atom::getEntryById()
This function uses XPath to get the entry based on its ID. Ideally we would also use XPath to find the offset of that node and therefore cache it, but the necessary XPath support isn't coming until at least PHP5.1.
- getEntryById
- in file RSS1.php, method XML_Feed_Parser_RSS1::getEntryById()
This is not really something that will work with RSS1 as it does not have clear restrictions on the global uniqueness of IDs. We will employ the _very_ hit and miss method of selecting entries based on the rdf:about attribute.
- getEntryByOffset
- in file Type.php, method XML_Feed_Parser_Type::getEntryByOffset()
Pretty fundamental!
- getEntryByOffset
- in file Parser.php, method XML_Feed_Parser::getEntryByOffset()
As well as allowing the items to be iterated over we want to allow users to be able to access a specific entry. This is one of two ways of doing that, the other being by ID.
- getGuid
- in file RSS2Element.php, method XML_Feed_Parser_RSS2Element::getGuid()
guid is the closest RSS2 has to atom's ID. It is usually but not always a URI.
- getId
- in file RSS1Element.php, method XML_Feed_Parser_RSS1Element::getId()
There is no established way of showing an ID for an RSS1 entry. We will simulate it using the rdf:about attribute of the entry element. This cannot be relied upon for unique IDs but may prove useful.
- getImage
- in file RSS2.php, method XML_Feed_Parser_RSS2::getImage()
Get details of the image associated with the feed.
- getImage
- in file RSS1.php, method XML_Feed_Parser_RSS1::getImage()
Get details of the image associated with the feed.
- getLink
- in file RSS2.php, method XML_Feed_Parser_RSS2::getLink()
In RSS2 a link is a text element but in order to ensure that we resolve URLs properly we have a special function for them. We maintain the parameter used by the atom getLink method, though we only use the offset parameter.
- getLink
- in file RSS1.php, method XML_Feed_Parser_RSS1::getLink()
In RSS1 a link is a text element but in order to ensure that we resolve URLs properly we have a special function for them.
- getSkipDays
- in file RSS2.php, method XML_Feed_Parser_RSS2::getSkipDays()
The skipdays element provides a list of days on which this feed should not be checked. We return an array of those days.
- getSkipHours
- in file RSS2.php, method XML_Feed_Parser_RSS2::getSkipHours()
The skiphours element provides a list of hourss on which this feed should not be checked. We return an array of those hours (integers, 24 hour clock)
- getSkips
- in file RSS2.php, method XML_Feed_Parser_RSS2::getSkips()
This is a general function used by both getSkipDays and getSkipHours. It simply returns an array of the values of the children of the appropriate tag.
- getSource
- in file AtomElement.php, method XML_Feed_Parser_AtomElement::getSource()
Where an atom:entry is taken from another feed then the aggregator
- getSource
- in file RSS2Element.php, method XML_Feed_Parser_RSS2Element::getSource()
source is an optional sub-element of item. Like atom:source it tells
- getText
- in file Type.php, method XML_Feed_Parser_Type::getText()
Get a text construct.
- getTextInput
- in file RSS2.php, method XML_Feed_Parser_RSS2::getTextInput()
The textinput element is little used, but in the interests of completeness...
- getTextInput
- in file RSS1.php, method XML_Feed_Parser_RSS1::getTextInput()
The textinput element is little used, but in the interests of completeness we will support it.
top
top
k
- key
- in file Parser.php, method XML_Feed_Parser::key()
Part of the iteration implementation. Returns the key for the current stage in the array.
top
top
top
top
top
top
top
x
- $xmlBase
- in file Type.php, variable XML_Feed_Parser_Type::$xmlBase
We don't particularly need to use this for this class, but it's helpful to make inheritance work.
- $xmlBase
- in file AtomElement.php, variable XML_Feed_Parser_AtomElement::$xmlBase
xml:base values inherited by the element
- $xpath
- in file RSS1.php, variable XML_Feed_Parser_RSS1::$xpath
We're likely to use XPath, so let's keep it global
- $xpath
- in file RSS2.php, variable XML_Feed_Parser_RSS2::$xpath
We're likely to use XPath, so let's keep it global
- $xpath
- in file Atom.php, variable XML_Feed_Parser_Atom::$xpath
We're likely to use XPath, so let's keep it global
- XML_Feed_Parser
- in file Parser.php, class XML_Feed_Parser
This is the core of the XML_Feed_Parser package. It identifies feed types and abstracts access to them. It is an iterator, allowing for easy access to the entire feed.
- XML_Feed_Parser_Atom
- in file Atom.php, class XML_Feed_Parser_Atom
This is the class that determines how we manage Atom 1.0 feeds
- XML_Feed_Parser_AtomElement
- in file AtomElement.php, class XML_Feed_Parser_AtomElement
This class provides support for atom entries. It will usually be called by XML_Feed_Parser_Atom with which it shares many methods.
- XML_Feed_Parser_Exception
- in file Exception.php, class XML_Feed_Parser_Exception
XML_Feed_Parser_Exception is a simple extension of PEAR_Exception, existing to help with identification of the source of exceptions.
- XML_Feed_Parser_RSS1
- in file RSS1.php, class XML_Feed_Parser_RSS1
This class handles RSS1.0 feeds.
- XML_Feed_Parser_RSS1Element
- in file RSS1Element.php, class XML_Feed_Parser_RSS1Element
RSS1 Element class for XML_Feed_Parser
- XML_Feed_Parser_RSS2
- in file RSS2.php, class XML_Feed_Parser_RSS2
This class handles RSS2 feeds.
- XML_Feed_Parser_RSS2Element
- in file RSS2Element.php, class XML_Feed_Parser_RSS2Element
This class provides support for RSS 2.0 entries. It will usually be called by XML_Feed_Parser_RSS2 with which it shares many methods.
- XML_Feed_Parser_Type
- in file Type.php, class XML_Feed_Parser_Type
This abstract class provides some general methods that are likely to be implemented exactly the same way for all feed types.
top
_
- __call
- in file Parser.php, method XML_Feed_Parser::__call()
For top-level feed elements we will provide access using methods or attributes. This function simply passes on a request to the appropriate feed type object.
- __call
- in file Type.php, method XML_Feed_Parser_Type::__call()
We are not going to provide methods for every entry type so this function will allow for a lot of mapping. We rely pretty heavily on this to handle our mappings between other feed types and atom.
- __construct
- in file RSS2.php, method XML_Feed_Parser_RSS2::__construct()
Our constructor does nothing more than its parent.
- __construct
- in file RSS1Element.php, method XML_Feed_Parser_RSS1Element::__construct()
Store useful information for later.
- __construct
- in file RSS2Element.php, method XML_Feed_Parser_RSS2Element::__construct()
Store useful information for later.
- __construct
- in file Atom.php, method XML_Feed_Parser_Atom::__construct()
Our constructor does nothing more than its parent.
- __construct
- in file RSS1.php, method XML_Feed_Parser_RSS1::__construct()
Our constructor does nothing more than its parent.
- __construct
- in file AtomElement.php, method XML_Feed_Parser_AtomElement::__construct()
Store useful information for later.
- __construct
- in file Parser.php, method XML_Feed_Parser::__construct()
Our constructor takes care of detecting feed types and instantiating appropriate classes. For now we're going to treat Atom 0.3 as Atom 1.0 but raise a warning. I do not intend to introduce full support for Atom 0.3 or RSS < 1.0, but others are welcome to.
- __get
- in file Type.php, method XML_Feed_Parser_Type::__get()
For many elements variable-style access will be desirable. This function provides for that.
- __get
- in file Parser.php, method XML_Feed_Parser::__get()
To allow variable-like access to feed-level data we use this method. It simply passes along to __call() which in turn passes along to the relevant object.
- __toString
- in file Type.php, method XML_Feed_Parser_Type::__toString()
Return an XML serialization of the feed, should it be required. Most users however, will already have a serialization that they used when instantiating the object.
- __toString
- in file Parser.php, method XML_Feed_Parser::__toString()
top
Documentation generated on Mon, 11 Mar 2019 14:12:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|