[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/domit/ -> xml_domit_rss.php (sommaire)

DOMIT! RSS is a DOM based RSS parser

Author: John Heinstein <johnkarl@nbnet.nb.ca>
Copyright: (C) 2004 John Heinstein. All rights reserved
License: http://www.gnu.org/copyleft/lesser.html LGPL License
Version: 0.51
Poids: 1121 lignes (31 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 1 fichier
 includes/domit/xml_domit_rss_shared.php

Définit 12 classes

xml_domit_rss_document:: (3 méthodes):
  xml_domit_rss_document()
  _init()
  getVersion()

xml_domit_rss_channel:: (24 méthodes):
  xml_domit_rss_channel()
  _init()
  getTitle()
  getLink()
  getDescription()
  getLanguage()
  getCopyright()
  getManagingEditor()
  getWebMaster()
  getPubDate()
  getLastBuildDate()
  getGenerator()
  getDocs()
  getCloud()
  getTTL()
  getImage()
  getRating()
  getTextInput()
  getSkipDays()
  getSkipHours()
  getItemCount()
  getItem()
  getCategoryCount()
  getCategory()

xml_domit_rss_item:: (13 méthodes):
  xml_domit_rss_item()
  _init()
  getTitle()
  getLink()
  getDescription()
  getAuthor()
  getComments()
  getEnclosure()
  getGUID()
  getPubDate()
  getSource()
  getCategoryCount()
  getCategory()

xml_domit_rss_category:: (3 méthodes):
  xml_domit_rss_category()
  getCategory()
  getDomain()

xml_domit_rss_image:: (8 méthodes):
  xml_domit_rss_image()
  _init()
  getTitle()
  getLink()
  getUrl()
  getWidth()
  getHeight()
  getDescription()

xml_domit_rss_textinput:: (6 méthodes):
  xml_domit_rss_textinput()
  _init()
  getTitle()
  getDescription()
  getName()
  getLink()

xml_domit_rss_cloud:: (6 méthodes):
  xml_domit_rss_cloud()
  getDomain()
  getPort()
  getPath()
  getRegisterProcedure()
  getProtocol()

xml_domit_rss_enclosure:: (4 méthodes):
  xml_domit_rss_enclosure()
  getUrl()
  getLength()
  getType()

xml_domit_rss_guid:: (3 méthodes):
  xml_domit_rss_guid()
  getGuid()
  isPermaLink()

xml_domit_rss_source:: (3 méthodes):
  xml_domit_rss_source()
  getSource()
  getUrl()

xml_domit_rss_skipdays:: (3 méthodes):
  xml_domit_rss_skipdays()
  getSkipDayCount()
  getSkipDay()

xml_domit_rss_skiphours:: (3 méthodes):
  xml_domit_rss_skiphours()
  getSkipHourCount()
  getSkipHour()


Classe: xml_domit_rss_document  - X-Ref

The base DOMIT! RSS document class

xml_domit_rss_document($url = '', $cacheDir = './', $cacheTime = '3600')   X-Ref
Constructor

param: string Path to the rss file
param: string Directory in which cache files are to be stored
param: string Expiration time (in seconds) for the cache file
return: Object A new instance of xml_domit_rss_document

_init()   X-Ref
Performs initialization of the RSS document


getVersion()   X-Ref
Returns the current version of DOMIT! RSS

return: int The current version of DOMIT! RSS

Classe: xml_domit_rss_channel  - X-Ref

Represents an RSS channel

xml_domit_rss_channel(&$channel, $externalElements = false)   X-Ref
Constructor

param: Object A DOM node containing channel data
param: boolean True if channel elements are siblings of the channel rather than children

_init()   X-Ref
Performs initialization of the RSS channel element


getTitle()   X-Ref
Returns the title of the channel

return: string The title of the channel, or an empty string

getLink()   X-Ref
Returns the url of the channel

return: string The url of the channel, or an empty string

getDescription()   X-Ref
Returns a description of the channel

return: string A description of the channel, or an empty string

getLanguage()   X-Ref
Returns the language of the channel

return: string The language of the channel, or an empty string

getCopyright()   X-Ref
Returns the copyright of the channel

return: string The copyright of the channel, or an empty string

getManagingEditor()   X-Ref
Returns the managing editor of the channel

return: string The managing editor of the channel, or an empty string

getWebMaster()   X-Ref
Returns the webmaster of the channel

return: string The webmaster of the channel, or an empty string

getPubDate()   X-Ref
Returns the publication date of the channel

return: string The publication date of the channel, or an empty string

getLastBuildDate()   X-Ref
Returns the last build date of the channel

return: string The last build date of the channel, or an empty string

getGenerator()   X-Ref
Returns the generator of the channel

return: string The generator of the channel, or an empty string

getDocs()   X-Ref
Returns the docs of the channel

return: string The docs of the channel, or an empty string

getCloud()   X-Ref
Returns the cloud of the channel

return: object A reference to the cloud object for the channel, or null

getTTL()   X-Ref
Returns the ttl of the channel

return: string The ttl of the channel, or an empty string

getImage()   X-Ref
Returns the image of the channel

return: object A reference to an image object for the channel, or null

getRating()   X-Ref
Returns the rating of the channel

return: string The rating of the channel, or an empty string

getTextInput()   X-Ref
Returns the text input box of the channel

return: object A reference to a text input box object for the channel, or null

getSkipDays()   X-Ref
Returns the skip days of the channel

return: object A reference to the skip days object for the channel, or null

getSkipHours()   X-Ref
Returns the skip hours of the channel

return: object A reference to the skip hours object for the channel, or null

getItemCount()   X-Ref
Returns the number of items in the channel

return: int The number of items in the channel

getItem($index)   X-Ref
Returns a reference to the item at the specified index

param: int The index of the requested item
return: Object A reference to the item at the specified index

getCategoryCount()   X-Ref
Returns the number of categories in the channel

return: int The number of categories in the channel

getCategory($index)   X-Ref
Returns a reference to the category at the specified index

param: int The index of the requested category
return: Object A reference to the category at the specified index

Classe: xml_domit_rss_item  - X-Ref

Represents an RSS item

xml_domit_rss_item(&$item)   X-Ref
Constructor

param: Object A DOM node containing item data

_init()   X-Ref
Performs initialization of the item element


getTitle()   X-Ref
Returns the title of the item

return: string The title of the item, or an empty string

getLink()   X-Ref
Returns the url of the item

return: string The url of the item, or an empty string

getDescription()   X-Ref
Returns a description of the item

return: string A description of the item, or an empty string

getAuthor()   X-Ref
Returns the author of the item

return: string The author of the item, or an empty string

getComments()   X-Ref
Returns the comments of the item

return: string The comments of the item, or an empty string

getEnclosure()   X-Ref
Returns the enclosure of the item

return: object A reference to the enclosure object for the item, or null

getGUID()   X-Ref
Returns the guid of the item

return: object A reference to the guid object for the item, or null

getPubDate()   X-Ref
Returns the publication date of the item

return: string The publication date of the item, or an empty string

getSource()   X-Ref
Returns the source of the item

return: object A reference to the source object for the item, or null

getCategoryCount()   X-Ref
Returns the number of categories in the item

return: int The number of categories in the item

getCategory($index)   X-Ref
Returns a reference to the category at the specified index

param: int The index of the requested category
return: Object A reference to the category at the specified index

Classe: xml_domit_rss_category  - X-Ref

Represents an RSS category

xml_domit_rss_category(&$category)   X-Ref
Constructor

param: Object A DOM node containing category data

getCategory()   X-Ref
Returns the category

return: string The category text

getDomain()   X-Ref
Returns the category domain

return: string The category domain

Classe: xml_domit_rss_image  - X-Ref

Represents an RSS image

xml_domit_rss_image(&$image)   X-Ref
Constructor

param: Object A DOM node containing image data

_init()   X-Ref
Performs initialization of image element


getTitle()   X-Ref
Returns the image title

return: string The image title

getLink()   X-Ref
Returns the image link

return: string The image link

getUrl()   X-Ref
Returns the image url

return: string The image url

getWidth()   X-Ref
Returns the image width in pixels

return: string The image width (maximum 144, default 88)

getHeight()   X-Ref
Returns the image height in pixels

return: string The image height (maximum 400, default 31)

getDescription()   X-Ref
Returns the image description

return: string The image description

Classe: xml_domit_rss_textinput  - X-Ref

Represents an RSS text input form

xml_domit_rss_textinput(&$textinput)   X-Ref
Constructor

param: Object A DOM node containing text input data

_init()   X-Ref
Performs initialization of textInput element


getTitle()   X-Ref
Returns the title of the text input

return: string The title of the text input, or an empty string

getDescription()   X-Ref
Returns a description of the text input

return: string A description of the text input, or an empty string

getName()   X-Ref
Returns the name of the text input

return: string The name of the text input, or an empty string

getLink()   X-Ref
Returns the url of the text input

return: string The url of the text input, or an empty string

Classe: xml_domit_rss_cloud  - X-Ref

Represents an RSS cloud

xml_domit_rss_cloud(&$cloud)   X-Ref
Constructor

param: Object A DOM node containing cloud data

getDomain()   X-Ref
Returns the domain of the cloud

return: string The domain of the cloud

getPort()   X-Ref
Returns the port of the cloud

return: string The port of the cloud

getPath()   X-Ref
Returns the path of the cloud

return: string The path of the cloud

getRegisterProcedure()   X-Ref
Returns the register procedure value of the cloud

return: string The register procedure value of the cloud

getProtocol()   X-Ref
Returns the protocol used by the cloud

return: string The protocol used by the cloud

Classe: xml_domit_rss_enclosure  - X-Ref

Represents an RSS enclosure

xml_domit_rss_enclosure(&$enclosure)   X-Ref
Constructor

param: Object A DOM node containing enclosure data

getUrl()   X-Ref
Returns the url of the enclosure

return: string The url of the enclosure

getLength()   X-Ref
Returns the length of the enclosure

return: string The length of the enclosure

getType()   X-Ref
Returns the type of the enclosure

return: string The type of the enclosure

Classe: xml_domit_rss_guid  - X-Ref

Represents an RSS guid

xml_domit_rss_guid(&$guid)   X-Ref
Constructor

param: Object A DOM node containing guid data

getGuid()   X-Ref
Returns the guid text

return: string The guid text

isPermaLink()   X-Ref
Determines whether the guid is a permalink

return: boolean True if the guid is a permalink (default true)

Classe: xml_domit_rss_source  - X-Ref

Represents an RSS source

xml_domit_rss_source(&$source)   X-Ref
Constructor

param: Object A DOM node containing source data

getSource()   X-Ref
Returns the source text

return: string The source text

getUrl()   X-Ref
Returns the url of the source

return: string The url of the source

Classe: xml_domit_rss_skipdays  - X-Ref

Represents an RSS skipDays element

xml_domit_rss_skipdays(&$skipdays)   X-Ref
Constructor

param: Object A DOM node containing source data

getSkipDayCount()   X-Ref
Returns the number of skip day items

return: int The number of skip day items

getSkipDay($index)   X-Ref
Returns the day of the specified index (Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday)

param: int The index of the requested day
return: string The day of the specified index (Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday)

Classe: xml_domit_rss_skiphours  - X-Ref

Represents an RSS skipHours element

xml_domit_rss_skiphours(&$skiphours)   X-Ref
Constructor

param: Object A DOM node containing source data

getSkipHourCount()   X-Ref
Returns the number of skip hour items

return: int The number of skip hour items

getSkipHour($index)   X-Ref
Returns the hour of the specified index (0-23)

param: int The index of the requested hour
return: string The hour of the specified index (0-23)



Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics