WordPress at Your Fingertips
function is not described

SimplePie_Locator::__construct() public WP 1.0

{} It's a method of the class: SimplePie_Locator{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Locator = new SimplePie_Locator();
$SimplePie_Locator->__construct( $file, $timeout, $useragent, $max_checked_feeds, $force_fsockopen, $curl_options );
$file(SimplePie_File) (required)
-
$timeout **
-
Default: 10
$useragent **
-
Default: null
$max_checked_feeds **
-
Default: 10
$force_fsockopen **
-
Default: false
$curl_options **
-
Default: array()

Code of SimplePie_Locator::__construct() WP 5.8.2

public function __construct(SimplePie_File $file, $timeout = 10, $useragent = null, $max_checked_feeds = 10, $force_fsockopen = false, $curl_options = array())
{
	$this->file = $file;
	$this->useragent = $useragent;
	$this->timeout = $timeout;
	$this->max_checked_feeds = $max_checked_feeds;
	$this->force_fsockopen = $force_fsockopen;
	$this->curl_options = $curl_options;

	if (class_exists('DOMDocument'))
	{
		$this->dom = new DOMDocument();

		set_error_handler(array('SimplePie_Misc', 'silence_errors'));
		$this->dom->loadHTML($this->file->body);
		restore_error_handler();
	}
	else
	{
		$this->dom = null;
	}
}