SimplePie_Locator::__construct PHP Method

__construct() public method

public __construct ( SimplePie_File $file, $timeout = 10, $useragent = null, $max_checked_feeds = 10 )
$file SimplePie_File
    public function __construct(SimplePie_File $file, $timeout = 10, $useragent = null, $max_checked_feeds = 10)
    {
        $this->file = $file;
        $this->useragent = $useragent;
        $this->timeout = $timeout;
        $this->max_checked_feeds = $max_checked_feeds;
        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;
        }
    }