PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / masterminds / html5 / src / HTML5 / Parser / FileInputStream.php
ameliabooking / vendor / masterminds / html5 / src / HTML5 / Parser Last commit date
CharacterReference.php 6 months ago DOMTreeBuilder.php 6 months ago EventHandler.php 6 months ago FileInputStream.php 6 months ago InputStream.php 6 months ago ParseError.php 6 months ago README.md 1 year ago Scanner.php 6 months ago StringInputStream.php 6 months ago Tokenizer.php 6 months ago TreeBuildingRules.php 6 months ago UTF8Utils.php 6 months ago
FileInputStream.php
34 lines
1 <?php
2
3 namespace AmeliaVendor\Masterminds\HTML5\Parser;
4
5 /**
6 * The FileInputStream loads a file to be parsed.
7 *
8 * So right now we read files into strings and then process the
9 * string. We chose to do this largely for the sake of expediency of
10 * development, and also because we could optimize toward processing
11 * arbitrarily large chunks of the input. But in the future, we'd
12 * really like to rewrite this class to efficiently handle lower level
13 * stream reads (and thus efficiently handle large documents).
14 *
15 * @deprecated since 2.4, to remove in 3.0. Use a string in the scanner instead.
16 */
17 class FileInputStream extends StringInputStream implements InputStream
18 {
19 /**
20 * Load a file input stream.
21 *
22 * @param string $data The file or url path to load.
23 * @param string $encoding The encoding to use for the data.
24 * @param string $debug A fprintf format to use to echo the data on stdout.
25 */
26 public function __construct($data, $encoding = 'UTF-8', $debug = '')
27 {
28 // Get the contents of the file.
29 $content = file_get_contents($data);
30
31 parent::__construct($content, $encoding, $debug);
32 }
33 }
34