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

Class: XML_RSS

Source Location: /XML_RSS-1.0.2/XML/RSS.php

Class Overview

XML_Parser
   |
   --XML_RSS

RSS parser class.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
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/).



[ Top ]


Class Variables

$activeTag =  ''

[line 49]


Type:   string


[ Top ]

$attribs =

[line 84]


Type:   array


[ Top ]

$channel = array()

[line 54]


Type:   array


[ Top ]

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

[line 94]


Type:   array


[ Top ]

$image = array()

[line 69]


Type:   array


[ Top ]

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

[line 114]


Type:   array


[ Top ]

$insideTag =  ''

[line 39]


Type:   string


[ Top ]

$insideTagStack = array()

[line 44]


Type:   array


[ Top ]

$item = array()

[line 64]


Type:   array


[ Top ]

$items = array()

[line 59]


Type:   array


[ Top ]

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

[line 105]


Type:   array


[ Top ]

$last = array()

[line 160]


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:BLINK', 'BLOGCHANNEL:CHANGES',
        'CREATIVECOMMONS:LICENSE', 'CC:LICENSE', 'CONTENT:ENCODED',
        'SY:UPDATEPERIOD', 'SY:UPDATEFREQUENCY', 'SY:UPDATEBASE',
        'TRACKBACK:PING', 'GEO:LAT', 'GEO:LONG',
        'MEDIA:GROUP', 'MEDIA:CONTENT', 'MEDIA:ADULT',
        'MEDIA:RATING', 'MEDIA:TITLE', 'MEDIA:DESCRIPTION',
        'MEDIA:KEYWORDS', 'MEDIA:THUMBNAIL', 'MEDIA:CATEGORY',
        'MEDIA:HASH', 'MEDIA:PLAYER', 'MEDIA:CREDIT',
        'MEDIA:COPYRIGHT', 'MEDIA:TEXT', 'MEDIA:RESTRICTION',
        'ITUNES:AUTHOR', 'ITUNES:BLOCK', 'ITUNES:CATEGORY',
        'ITUNES:DURATION', 'ITUNES:EXPLICIT', 'ITUNES:IMAGE',
        'ITUNES:KEYWORDS', 'ITUNES:NEW-FEED-URL', 'ITUNES:OWNER',
        'ITUNES:PUBDATE', 'ITUNES:SUBTITLE', 'ITUNES:SUMMARY'
    )

[line 136]

List of allowed module tags

Currently supported:

Dublin Core Metadata blogChannel RSS module CreativeCommons Content Syndication Trackback GeoCoding Media iTunes


Type:   array


[ Top ]

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

[line 89]


Type:   array


[ Top ]

$textinput = array()

[line 74]


Type:   array


[ Top ]

$textinputs = array()

[line 79]


Type:   array


[ Top ]

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

[line 117]


Type:   mixed


[ Top ]



Method Detail

XML_RSS (Constructor)   [line 177]

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 392]

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 426]

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 409]

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 374]

array getStructure( )

Get complete structure of RSS file
  • Access: public

[ Top ]

getTextinputs   [line 440]

array getTextinputs( )

Get text input fields from RSS file
  • Access: public

[ Top ]


Documentation generated on Sun, 01 May 2011 19:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.