- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLParserMode.php
More file actions
46 lines (39 loc) · 731 Bytes
/
HTMLParserMode.php
File metadata and controls
46 lines (39 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace Mpdf;
class HTMLParserMode
{
/**
* Parses a whole $html document
*/
const DEFAULT_MODE = 0;
/**
* Parses the $html as styles and stylesheets only
*/
const HEADER_CSS = 1;
/**
* Parses the $html as output elements only
*/
const HTML_BODY = 2;
/**
* (For internal use only - parses the $html code without writing to document)
*
* @internal
*/
const HTML_PARSE_NO_WRITE = 3;
/**
* (For internal use only - writes the $html code to a buffer)
*
* @internal
*/
const HTML_HEADER_BUFFER = 4;
public static function getAllModes()
{
return [
self::DEFAULT_MODE,
self::HEADER_CSS,
self::HTML_BODY,
self::HTML_PARSE_NO_WRITE,
self::HTML_HEADER_BUFFER,
];
}
}