class vB_RSS_Poster

Properties

$xml_string
$xml_array
$xml_object
$template
$feedtype

Methods

set_xml_string($xml_string)

No description

fetch_xml($url)

No description

parse_xml($target_encoding = false, $ncrencode = false, $override_encoding = false, $escape_html = false)

Parses the RSS XML If the target encoding is not specified then the XML parser will resolve it from the current language settings.

fetch_item($id = -1)

No description

fetch_item_atom($id = -1)

No description

fetch_item_rss($id = -1)

No description

fetch_items()

No description

array
fetch_normalised_items()

Fetches items and normalises the keys.

parse_template($template, $item, $unhtmlspecialchars = true)

No description

fetch_replacement($field, $item)

No description

Details

at line 131
set_xml_string($xml_string)

Parameters

$xml_string

at line 136
fetch_xml($url)

Parameters

$url

at line 182
parse_xml($target_encoding = false, $ncrencode = false, $override_encoding = false, $escape_html = false)

Parses the RSS XML If the target encoding is not specified then the XML parser will resolve it from the current language settings.

The source encoding can be overridden with $override_encoding. This forces the RSS feed to be interpreted with that character set. This should only be done if the RSS fails to report it's encoding or reports it incorrectly.

Parameters

$target_encoding
$ncrencode
$override_encoding
$escape_html

at line 218
fetch_item($id = -1)

Parameters

$id

at line 235
fetch_item_atom($id = -1)

Parameters

$id

at line 255
fetch_item_rss($id = -1)

Parameters

$id

at line 275
fetch_items()

at line 309
array fetch_normalised_items()

Fetches items and normalises the keys.

The result is in the following form: array( 'link' => link, 'description' => description, 'title' => title 'id' => id, 'date' => date 'enclosure_link' => enclosure_link 'content' => content:encoded 'author' => author );

Return Value

array mixed

at line 342
parse_template($template, $item, $unhtmlspecialchars = true)

Parameters

$template
$item
$unhtmlspecialchars

at line 361
fetch_replacement($field, $item)

Parameters

$field
$item