You are here: Documentation » API Reference » SimplePie » set_autodiscovery_level()
Table of Contents
set_autodiscovery_level()
Description
class SimplePie { set_autodiscovery_level ( [int $level = SIMPLEPIE_LOCATOR_ALL] ) }
Set how much feed autodiscovery to do. SimplePie's autodiscovery engine takes notes from Mark Pilgrim's Ultra-liberal RSS Locator, points 1-6. These points are referenced below in the parameter section.
Works with autodiscovery along with set_max_checked_feeds() and set_autodiscovery_cache_duration().
Availability
- Available since SimplePie 1.0.
Parameters
level
Feed Autodiscovery Level (level can be a combination of the following constants, see bitwise OR operator).
SIMPLEPIE_LOCATOR_NONE
No Autodiscovery
Examples
Disable feed autodiscovery
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->set_autodiscovery_level(SIMPLEPIE_LOCATOR_NONE); $feed->init(); $feed->handle_content_type(); echo $feed->get_title();
See Also
reference/simplepie/set_autodiscovery_level.txt · Last modified: 2012/01/10 08:41 by rmccue