Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileInputStream.php

function FileInputStream::__construct

Load a file input stream.

Parameters

string $data The file or url path to load.:

string $encoding The encoding to use for the data.:

string $debug A fprintf format to use to echo the data on stdout.:

Overrides StringInputStream::__construct

File

vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php, line 26

Class

FileInputStream
The FileInputStream loads a file to be parsed.

Namespace

Masterminds\HTML5\Parser

Code

public function __construct($data, $encoding = 'UTF-8', $debug = '') {
    // Get the contents of the file.
    $content = file_get_contents($data);
    parent::__construct($content, $encoding, $debug);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal