| [ Index ] |
PHP Cross Reference of Wordpress 2.9.1 |
[Source view] [Print] [Project Stats]
MagpieRSS: a simple RSS integration tool
| Author: | Kellan Elliott-McCrea <kellan@protest.net> |
| License: | GPL |
| Version: | 0.51 |
| File Size: | 922 lines (22 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
MagpieRSS:: (22 methods):
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:: (12 methods):
RSSCache()
set()
get()
check_cache()
serialize()
unserialize()
file_name()
error()
debug()
parse_w3cdtf()
wp_rss()
get_rss()
| MagpieRSS($source) X-Ref |
| No description |
| 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: bool|MagpieRSS false on failure or MagpieRSS object on success. |
| _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. return: Snoopy style response |
| _response_to_rss($resp) X-Ref |
| Retrieve param: unknown_type $resp return: unknown |
| init() X-Ref |
| Setup 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 |
| RSSCache($base='', $age='') X-Ref |
| No description |
| 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: Fri Jan 8 00:19:48 2010 | Cross-referenced by PHPXref 0.7 |