apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: XML_RSS

Source Location: /XML_RSS-0.9.9/RSS.php

Class Overview

XML_Parser
   |
   --XML_RSS

RSS parser class.


Author(s):

Version:

  • $Revision: 1.26 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
RSS parser class.

This class is a parser for Resource Description Framework (RDF) Site Summary (RSS) documents. For more information on RSS see the website of the RSS working group (http://www.purl.org/rss/).

  • Author: Martin Jansen <mj@php.net>
  • Version: $Revision: 1.26 $
  • Access: public


[ Top ]


Class Variables

$activeTag =  ''

[line 53]


Type:   string


[ Top ]

$attribs =

[line 88]


Type:   array


[ Top ]

$channel = array()

[line 58]


Type:   array


[ Top ]

$channelTags = array('TITLE', 'LINK', 'DESCRIPTION', 'IMAGE',
                              'ITEMS', 'TEXTINPUT', 'LANGUAGE', 'COPYRIGHT',
                              'MANAGINGEditor', 'WEBMASTER', 'PUBDATE', 'LASTBUILDDATE',
                              'CATEGORY', 'GENERATOR', 'DOCS', 'CLOUD', 'TTL',
                              'RATING')

[line 98]


Type:   array


[ Top ]

$image = array()

[line 73]


Type:   array


[ Top ]

$imageTags = array('TITLE', 'URL', 'LINK', 'WIDTH', 'HEIGHT')

[line 114]


Type:   array


[ Top ]

$insideTag =  ''

[line 43]


Type:   string


[ Top ]

$insideTagStack = array()

[line 48]


Type:   array


[ Top ]

$item = array()

[line 68]


Type:   array


[ Top ]

$items = array()

[line 63]


Type:   array


[ Top ]

$itemTags = array('TITLE', 'LINK', 'DESCRIPTION', 'PUBDATE', 'AUTHOR', 'CATEGORY',
                          'COMMENTS', 'ENCLOSURE', 'GUID', 'PUBDATE', 'SOURCE',
                          'CONTENT:ENCODED')

[line 107]


Type:   array


[ Top ]

$moduleTags = array('DC:TITLE', 'DC:CREATOR', 'DC:SUBJECT', 'DC:DESCRIPTION',
                            'DC:PUBLISHER', 'DC:CONTRIBUTOR', 'DC:DATE', 'DC:TYPE',
                            'DC:FORMAT', 'DC:IDENTIFIER', 'DC:SOURCE', 'DC:LANGUAGE',
                            'DC:RELATION', 'DC:COVERAGE', 'DC:RIGHTS',
                            'BLOGCHANNEL:BLOGROLL', 'BLOGCHANNEL:MYSUBSCRIPTIONS',
                            'BLOGCHANNEL:MYSUBSCRIPTIONS', 'BLOGCHANNEL:CHANGES',
                            'CC:LICENSE', 'CONTENT:ENCODED', 
                            'SY:UPDATEPERIOD', 'SY:UPDATEFREQUENCY', 'SY:UPDATEBASE', 
                            )

[line 127]

List of allowed module tags

Currently Dublin Core Metadata, blogChannel RSS module, CreativeCommons, Content and Syndication are supported.


Type:   array


[ Top ]

$parentTags = array('CHANNEL', 'ITEM', 'IMAGE', 'TEXTINPUT')

[line 93]


Type:   array


[ Top ]

$textinput = array()

[line 78]


Type:   array


[ Top ]

$textinputs = array()

[line 83]


Type:   array


[ Top ]

$textinputTags = array('TITLE', 'DESCRIPTION', 'NAME', 'LINK')

[line 117]


Type:   mixed


[ Top ]



Method Detail

XML_RSS (Constructor)   [line 151]

void XML_RSS( [mixed $handle = ''], [string $srcenc = null], [string $tgtenc = null])

Constructor
  • Access: public

Parameters:

mixed   $handle   —  File pointer, name of the RSS file, or an RSS string.
string   $srcenc   —  Source charset encoding, use null (default) to use default encoding (ISO-8859-1)
string   $tgtenc   —  Target charset encoding, use null (default) to use default encoding (ISO-8859-1)

[ Top ]

getChannelInfo   [line 352]

array getChannelInfo( )

Get general information about current channel

This method returns an array containing the information that has been extracted from the <channel>-tag while parsing the RSS file.

  • Access: public

[ Top ]

getImages   [line 386]

array getImages( )

Get images from RSS file

This method returns an array containing the set of images that are provided by the RSS file.

  • Access: public

[ Top ]

getItems   [line 369]

array getItems( )

Get items from RSS file

This method returns an array containing the set of items that are provided by the RSS file.

  • Access: public

[ Top ]

getStructure   [line 334]

array getStructure( )

Get complete structure of RSS file
  • Access: public

[ Top ]

getTextinputs   [line 400]

array getTextinputs( )

Get text input fields from RSS file
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:12:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.