public function FileInputStream::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php \Masterminds\HTML5\Parser\FileInputStream::__construct()
Load a file input stream.
Parameters
string $data: The file or url path to load.
Overrides StringInputStream::__construct
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ FileInputStream.php, line 25
Class
- FileInputStream
- The FileInputStream loads a file to be parsed.
Namespace
Masterminds\HTML5\ParserCode
public function __construct($data, $encoding = 'UTF-8', $debug = '') {
// Get the contents of the file.
$content = file_get_contents($data);
parent::__construct($content, $encoding, $debug);
}