SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation

Search

You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate button.

Results


SimplePie 1.0 "Razzleberry": 177 Hits
ace. (RC1) * Added the following constants: ''[[reference:SimplePie:SIMPLEPIE_BUILD]]'', ''[[reference:SimplePie:SIMPLEPIE_LINKBACK]]'', ''[[reference:SimplePie:SIMPLEPIE_NAME]]'', ''[[reference:SimplePie:SIMPLEPIE_URL]]'', ''[[reference:SimplePie:SIMPLEPIE_USERAGENT]]'', and ''[[reference:SimplePie:SIMPLEPIE_VERSION]]''. (RC1) * Added ''[[reference:SimplePie:set_favicon_handler]]'' to enable the caching and dis
embed(): 46 Hits
rue )); } }</code> ===== See Also ===== * [[reference:SimplePie:start]] * [[reference:SimplePie_Item:start]] * [[reference:SimplePie_Enclosure:start]] * [[reference:SimplePie_Enclosure:native_embed
native_embed(): 44 Hits
rue )); } }</code> ===== See Also ===== * [[reference:SimplePie:start]] * [[reference:SimplePie_Item:start]] * [[reference:SimplePie_Enclosure:start]] * [[reference:SimplePie_Enclosure:embed]]
set_item_class(): 38 Hits
the Google-namespaced <gd:when> tag. // http://simplepie.org/wiki/tutorial/grab_custom_tags_or_attributes $when =... </body> </html></code> ===== See Also ===== * [[reference:SimplePie:start]] * [[reference:SimplePie_Item:start]]
set_useragent(): 33 Hits
ows you to override the [[http://en.wikipedia.org/wiki/User_agent|user agent string]] that SimplePie sends to the remote server. This value is passed... s ===== ==== ua ==== A new user agent string for SimplePie to use. Defaults to [[reference:SimplePie:SIMPLEPIE_USERAGENT]]. ===== Examples ... ting user agent string ==== <code php>$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog
Sorting by custom criteria instead of date: 32 Hits
ab extra Digg-specific data, and we'll extend the SimplePie class and override the [[reference:SimplePie:sort_items]] method to sort by number o... necessary libraries. Digg Add-on found at http://simplepie.org/wiki/addons/digg require_once('simplepie.inc'); require_once('simplepie_digg.inc'); // Extend the SimplePie class and override the existing sort_items() func... with our own. class SimplePie_Custom_Sort extends SimplePie { public static function sort_items($a, $b) {
sanitize(): 32 Hits
====== sanitize() ====== ===== Description ===== <code>class SimplePie { sanitize ( mixed $data, integer $type, [ string $base = '' ] ) }</code> Sanitizes the incoming data to ensure that it matches the type of data expected. Also absolutizes relative URLs, and a few other things to ensure the data is of the best quality. ===== Availability ===== * Available since SimplePie 1.0. ===== Parameters ===== ==== data ==== The data that needs to be sanitized. ==== type ==== The type of data that it's supposed to be. * ''SIMPLEPIE_CONSTRUCT_NONE''\\ No construct (:?: This could use a better description) * ''SIMPLEPIE_CONSTRUCT_TEXT''\\ Plain text content * ''SIMPLEPIE_CONSTRUCT_HTML''\\ HTML content * ''SIMPLEPIE_CONSTRUCT_XHTML''\\ XHTML content * ''SIMPLEPIE_CONSTRUCT_BASE64''\\ Base64 content * ''SIMPLEPIE_CONSTRUCT_IRI''\\ IRI content (e.g. URLs, URIs, etc.) * ''SIMPLEPIE_CONSTRUCT_MAYBE_HTML''\\ Might be HTML, so let's treat it as such. * ''SIMPLEPIE_CONSTRUCT_ALL''\\ All types of content ==== base ==== The ''xml:base'' value to use when converting relative URLs to absolute ones. ===== Examples ===== ==== Sanitize the data as a URL ==== <code php>$data = $feed->sanitize('http://simplepie.org/wiki/', SIMPLEPIE_CONSTRUCT_IRI);</code> ===== See Also ===== * [[reference:SimplePie:start]]
get_all_discovered_feeds(): 30 Hits
hp require_once('../simplepie.inc'); $feed = new SimplePie('http://simplepie.org/wiki/reference/simplepie/get_all_discovered_feeds'); foreach ($... "<br />"; } ?></code> ===== See Also ===== * [[reference:SimplePie:start]] * [[reference:SimplePie:subscribe_url]]