1<?php
2
3namespace Mpdf;
4
5class HTMLParserMode
6{
7	/**
8	 * Parses a whole $html document
9	 */
10	const DEFAULT_MODE = 0;
11
12	/**
13	 * Parses the $html as styles and stylesheets only
14	 */
15	const HEADER_CSS = 1;
16
17	/**
18	 * Parses the $html as output elements only
19	 */
20	const HTML_BODY = 2;
21
22	/**
23	 * (For internal use only - parses the $html code without writing to document)
24	 *
25	 * @internal
26	 */
27	const HTML_PARSE_NO_WRITE = 3;
28
29	/**
30	 * (For internal use only - writes the $html code to a buffer)
31	 *
32	 * @internal
33	 */
34	const HTML_HEADER_BUFFER = 4;
35
36	public static function getAllModes()
37	{
38		return [
39			self::DEFAULT_MODE,
40			self::HEADER_CSS,
41			self::HTML_BODY,
42			self::HTML_PARSE_NO_WRITE,
43			self::HTML_HEADER_BUFFER,
44		];
45	}
46}
47