[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/xml/rssparser/ -> rssitem.class.php (sommaire)

(pas de description)

Poids: 156 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

RSSItem:: (11 méthodes):
  RSSItem()
  getLink()
  getTitle()
  getImage()
  getDescription()
  get()
  getUniqueId()
  getEnclosure()
  getEnclosures()
  hasEnclosures()
  getNumEnclosures()


Classe: RSSItem  - X-Ref

\ingroup XML

<p>Provides information about an RSS item, fetched from an RSS resource.</p>
<p>This class provides methods to get the value of some of the attributes and possible child
tags of the &lt;item&lt; tag. In case we need to know about any other value that is not available
via one of the 'getter' functions (getTitle(), getImage(), getDescription(), getLink()), we can then get
values from the resulting array as generated by the underlying RSS parser using the get() function.
The array is an associative array where the keys are the name of the attribute/tag and the values are
the value of the attribute/tag.</p>
RSSItem( $item )   X-Ref
Creates an RSSItem object from the output given by the MagpieRSS parser

param: item The RSS item.

getLink()   X-Ref
Returns the link assigned to the item.

return: The link assigned to the item.

getTitle()   X-Ref
Returns the title assigned to the link.

return: Title assigned to the link.

getImage()   X-Ref
Image assigned to the item

return: URI of the image assigned to this item

getDescription()   X-Ref
Description assigned to this item.

param: Description assigned to the item.

get( $key )   X-Ref
Even though we provide convenience methods for the most used fields of the
object, might be good to provide one to access the 'item' array generically

param: key Name assigned to the item
return: The value of the item.

getUniqueId()   X-Ref
returns a unique id for this item

return: a unique id

getEnclosure()   X-Ref
returns one enclosure. If there is more than one, it will only return the first
one

return: an RssEnclosure object

getEnclosures()   X-Ref
retursn an array of RssEnclosure objects

return: an array of RssEnclosure objects, or an empty array if there was none

hasEnclosures()   X-Ref
returns true if the feed has enclosures or false if not

 @return boolean

getNumEnclosures()   X-Ref
returns the number of enclosures that this item has

return: an integer



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics