Squiz Matrix
4.12.2
|
Public Member Functions | |
__construct () | |
setInputFile ($file='') | |
setInputString ($xml) | |
parse () | |
getRssType () | |
getItems () | |
getTextInput () | |
getChannelInfo () | |
getImageInfo () | |
getUnrecognisedElements () | |
startElementHandler ($xp, $name, $attributes) | |
endElementHandler ($xp, $name) | |
characterHandler ($xp, $data, $attributes=FALSE) | |
_issetFile () | |
Definition at line 29 of file rss_feed_reader.inc.
__construct | ( | ) |
Constructor
Definition at line 128 of file rss_feed_reader.inc.
_issetFile | ( | ) |
Checks if the file pointer is set or not
Definition at line 602 of file rss_feed_reader.inc.
characterHandler | ( | $xp, | |
$data, | |||
$attributes = FALSE |
|||
) |
Handles the data
object | $xp | the xml parser |
string | $data | data inside the element |
boolean | $attributes | default of false but becomes true when we are calling this to assign attributes |
Definition at line 455 of file rss_feed_reader.inc.
endElementHandler | ( | $xp, | |
$name | |||
) |
Handles the end of an element
object | $xp | the xml parser |
string | $name | name of the element |
Definition at line 417 of file rss_feed_reader.inc.
getChannelInfo | ( | ) |
returns the array ofchannel info
Definition at line 318 of file rss_feed_reader.inc.
getImageInfo | ( | ) |
Returns the array of image info
Definition at line 331 of file rss_feed_reader.inc.
getItems | ( | ) |
Returns the array of all of the items
Definition at line 292 of file rss_feed_reader.inc.
getRssType | ( | ) |
Returns a string of the type of the RSS as e.g. rss_1.0/ rss_2.0
Definition at line 279 of file rss_feed_reader.inc.
getTextInput | ( | ) |
Returns the array of textinput elements of the RSS
Definition at line 305 of file rss_feed_reader.inc.
getUnrecognisedElements | ( | ) |
Returns the array of all of the unrecognised elements
Definition at line 344 of file rss_feed_reader.inc.
parse | ( | ) |
Parsers the file
Returns error message on error, TRUE on success.
Definition at line 215 of file rss_feed_reader.inc.
setInputFile | ( | $file = '' | ) |
Accepts the path of the file to be parsed and sets the file pointer
string | $file | the path of the file to be parsed |
Definition at line 147 of file rss_feed_reader.inc.
setInputString | ( | $xml | ) |
Set the file pointer
int | $xml | the pointer to the xml file |
Definition at line 191 of file rss_feed_reader.inc.
startElementHandler | ( | $xp, | |
$name, | |||
$attributes | |||
) |
Handles the start if an element
object | $xp | the xml parser |
string | $name | name of the element |
array | $attributes | the attributes |
Definition at line 367 of file rss_feed_reader.inc.