[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> rss.php (summary)

MagpieRSS: a simple RSS integration tool A compiled file for RSS syndication

Author: Kellan Elliott-McCrea
License: GPL
Version: 0.51
File Size: 950 lines (23 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

MagpieRSS:: (23 methods):
  __construct()
  MagpieRSS()
  feed_start_element()
  feed_cdata()
  feed_end_element()
  concat()
  append_content()
  append()
  normalize()
  is_rss()
  is_atom()
  map_attrs()
  error()
  fetch_rss()
  _fetch_remote_file()
  _response_to_rss()
  init()
  is_info()
  is_success()
  is_redirect()
  is_error()
  is_client_error()
  is_server_error()

RSSCache:: (13 methods):
  __construct()
  RSSCache()
  set()
  get()
  check_cache()
  serialize()
  unserialize()
  file_name()
  error()
  debug()
  parse_w3cdtf()
  wp_rss()
  get_rss()


Class: MagpieRSS  - X-Ref

__construct( $source )   X-Ref
PHP5 constructor.


MagpieRSS( $source )   X-Ref
PHP4 constructor.


feed_start_element($p, $element, &$attrs)   X-Ref
No description

feed_cdata($p, $text)   X-Ref
No description

feed_end_element($p, $el)   X-Ref
No description

concat(&$str1, $str2="")   X-Ref
No description

append_content($text)   X-Ref
No description

append($el, $text)   X-Ref
No description

normalize()   X-Ref
No description

is_rss()   X-Ref
No description

is_atom()   X-Ref
No description

map_attrs($k, $v)   X-Ref
No description

error( $errormsg, $lvl = E_USER_WARNING )   X-Ref
No description

fetch_rss($url)   X-Ref
Build Magpie object based on RSS from URL.

param: string $url URL to retrieve feed.
return: MagpieRSS|false MagpieRSS object on success, false on failure.

_fetch_remote_file($url, $headers = "" )   X-Ref
Retrieve URL headers and content using WP HTTP Request API.

param: string $url URL to retrieve
param: array $headers Optional. Headers to send to the URL. Default empty string.
return: Snoopy style response

_response_to_rss($resp)   X-Ref
Retrieve

param: array $resp
return: MagpieRSS|bool

init()   X-Ref
Set up constants with default values, unless user overrides.


is_info($sc)   X-Ref
No description

is_success($sc)   X-Ref
No description

is_redirect($sc)   X-Ref
No description

is_error($sc)   X-Ref
No description

is_client_error($sc)   X-Ref
No description

is_server_error($sc)   X-Ref
No description

Class: RSSCache  - X-Ref

__construct( $base = '', $age = '' )   X-Ref
PHP5 constructor.


RSSCache( $base = '', $age = '' )   X-Ref
PHP4 constructor.


set($url, $rss)   X-Ref
No description

get($url)   X-Ref
No description

check_cache( $url )   X-Ref
No description

serialize( $rss )   X-Ref
No description

unserialize( $data )   X-Ref
No description

file_name($url)   X-Ref
No description

error($errormsg, $lvl=E_USER_WARNING)   X-Ref
No description

debug($debugmsg, $lvl=E_USER_NOTICE)   X-Ref
No description

parse_w3cdtf( $date_str )   X-Ref
No description

wp_rss( $url, $num_items = -1 )   X-Ref
Display all RSS items in a HTML ordered list.

param: string $url URL of feed to display. Will not auto sense feed URL.
param: int $num_items Optional. Number of items to display, default is all.

get_rss($url, $num_items = 5)   X-Ref
Display RSS items in HTML list items.

You have to specify which HTML list you want, either ordered or unordered
before using the function. You also have to specify how many items you wish
to display. You can't display all of them like you can with wp_rss()
function.

param: string $url URL of feed to display. Will not auto sense feed URL.
param: int $num_items Optional. Number of items to display, default is all.
return: bool False on failure.



Generated : Tue Mar 19 08:20:01 2024 Cross-referenced by PHPXref