PageRenderTime 52ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/stubs/tidy.php

http://github.com/nnmatveev/php-stubs
PHP | 837 lines | 202 code | 77 blank | 558 comment | 0 complexity | 5d0a7b987124d62ef7b12afd6f8f4e36 MD5 | raw file
  1. <?php
  2. // Start of tidy v.2.0
  3. /**
  4. * An HTML node in an HTML file, as detected by tidy.
  5. * @link http://php.net/manual/en/class.tidy.php
  6. */
  7. class tidy {
  8. /**
  9. * @var string The last warnings and errors from TidyLib
  10. */
  11. var $errorBuffer;
  12. /**
  13. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  14. * Returns the value of the specified configuration option for the tidy document
  15. * @link http://php.net/manual/en/tidy.getopt.php
  16. * @param string $option <p>
  17. * You will find a list with each configuration option and their types
  18. * at: &url.tidy.conf;.
  19. * </p>
  20. * @return mixed the value of the specified option.
  21. * The return type depends on the type of the specified one.
  22. */
  23. public function getOpt ($option) {}
  24. /**
  25. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  26. * Execute configured cleanup and repair operations on parsed markup
  27. * @link http://php.net/manual/en/tidy.cleanrepair.php
  28. * @return bool Returns true on success or false on failure.
  29. */
  30. public function cleanRepair () {}
  31. /**
  32. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  33. * Parse markup in file or URI
  34. * @link http://php.net/manual/en/tidy.parsefile.php
  35. * @param string $filename <p>
  36. * If the filename parameter is given, this function
  37. * will also read that file and initialize the object with the file,
  38. * acting like tidy_parse_file.
  39. * </p>
  40. * @param mixed $config [optional] <p>
  41. * The config config can be passed either as an
  42. * array or as a string. If a string is passed, it is interpreted as the
  43. * name of the configuration file, otherwise, it is interpreted as the
  44. * options themselves.
  45. * </p>
  46. * <p>
  47. * For an explanation about each option, see
  48. * &url.tidy.conf;.
  49. * </p>
  50. * @param string $encoding [optional] <p>
  51. * The encoding parameter sets the encoding for
  52. * input/output documents. The possible values for encoding are:
  53. * ascii, latin0, latin1,
  54. * raw, utf8, iso2022,
  55. * mac, win1252, ibm858,
  56. * utf16, utf16le, utf16be,
  57. * big5, and shiftjis.
  58. * </p>
  59. * @param bool $use_include_path [optional] <p>
  60. * Search for the file in the include_path.
  61. * </p>
  62. * @return bool Returns true on success or false on failure.
  63. */
  64. public function parseFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  65. /**
  66. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  67. * Parse a document stored in a string
  68. * @link http://php.net/manual/en/tidy.parsestring.php
  69. * @param string $input <p>
  70. * The data to be parsed.
  71. * </p>
  72. * @param mixed $config [optional] <p>
  73. * The config config can be passed either as an
  74. * array or as a string. If a string is passed, it is interpreted as the
  75. * name of the configuration file, otherwise, it is interpreted as the
  76. * options themselves.
  77. * </p>
  78. * <p>
  79. * For an explanation about each option, visit &url.tidy.conf;.
  80. * </p>
  81. * @param string $encoding [optional] <p>
  82. * The encoding parameter sets the encoding for
  83. * input/output documents. The possible values for encoding are:
  84. * ascii, latin0, latin1,
  85. * raw, utf8, iso2022,
  86. * mac, win1252, ibm858,
  87. * utf16, utf16le, utf16be,
  88. * big5, and shiftjis.
  89. * </p>
  90. * @return bool a new tidy instance.
  91. */
  92. public function parseString ($input, $config = null, $encoding = null) {}
  93. /**
  94. * (PHP 5, PECL tidy &gt;= 0.7.0)<br/>
  95. * Repair a string using an optionally provided configuration file
  96. * @link http://php.net/manual/en/tidy.repairstring.php
  97. * @param string $data <p>
  98. * The data to be repaired.
  99. * </p>
  100. * @param mixed $config [optional] <p>
  101. * The config config can be passed either as an
  102. * array or as a string. If a string is passed, it is interpreted as the
  103. * name of the configuration file, otherwise, it is interpreted as the
  104. * options themselves.
  105. * </p>
  106. * <p>
  107. * Check &url.tidy.conf; for
  108. * an explanation about each option.
  109. * </p>
  110. * @param string $encoding [optional] <p>
  111. * The encoding parameter sets the encoding for
  112. * input/output documents. The possible values for encoding are:
  113. * ascii, latin0, latin1,
  114. * raw, utf8, iso2022,
  115. * mac, win1252, ibm858,
  116. * utf16, utf16le, utf16be,
  117. * big5, and shiftjis.
  118. * </p>
  119. * @return string the repaired string.
  120. */
  121. public function repairString ($data, $config = null, $encoding = null) {}
  122. /**
  123. * (PHP 5, PECL tidy &gt;= 0.7.0)<br/>
  124. * Repair a file and return it as a string
  125. * @link http://php.net/manual/en/tidy.repairfile.php
  126. * @param string $filename <p>
  127. * The file to be repaired.
  128. * </p>
  129. * @param mixed $config [optional] <p>
  130. * The config config can be passed either as an
  131. * array or as a string. If a string is passed, it is interpreted as the
  132. * name of the configuration file, otherwise, it is interpreted as the
  133. * options themselves.
  134. * </p>
  135. * <p>
  136. * Check http://tidy.sourceforge.net/docs/quickref.html for an
  137. * explanation about each option.
  138. * </p>
  139. * @param string $encoding [optional] <p>
  140. * The encoding parameter sets the encoding for
  141. * input/output documents. The possible values for encoding are:
  142. * ascii, latin0, latin1,
  143. * raw, utf8, iso2022,
  144. * mac, win1252, ibm858,
  145. * utf16, utf16le, utf16be,
  146. * big5, and shiftjis.
  147. * </p>
  148. * @param bool $use_include_path [optional] <p>
  149. * Search for the file in the include_path.
  150. * </p>
  151. * @return string the repaired contents as a string.
  152. */
  153. public function repairFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  154. /**
  155. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  156. * Run configured diagnostics on parsed and repaired markup
  157. * @link http://php.net/manual/en/function.tidy-diagnose.php
  158. * @return bool Returns true on success or false on failure.
  159. */
  160. public function diagnose () {}
  161. /**
  162. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  163. * Get release date (version) for Tidy library
  164. * @link http://php.net/manual/en/tidy.getrelease.php
  165. * @return string a string with the release date of the Tidy library.
  166. */
  167. public function getRelease () {}
  168. /**
  169. * (PHP 5, PECL tidy &gt;= 0.7.0)<br/>
  170. * Get current Tidy configuration
  171. * @link http://php.net/manual/en/tidy.getconfig.php
  172. * @return array an array of configuration options.
  173. * </p>
  174. * <p>
  175. * For an explanation about each option, visit &url.tidy.conf;.
  176. */
  177. public function getConfig () {}
  178. /**
  179. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  180. * Get status of specified document
  181. * @link http://php.net/manual/en/tidy.getstatus.php
  182. * @return int 0 if no error/warning was raised, 1 for warnings or accessibility
  183. * errors, or 2 for errors.
  184. */
  185. public function getStatus () {}
  186. public function getHtmlVer () {}
  187. /**
  188. * (PHP 5 &gt;= 5.1.0)<br/>
  189. * Returns the documentation for the given option name
  190. * @link http://php.net/manual/en/tidy.getoptdoc.php
  191. * @param string $optname <p>
  192. * The option name
  193. * </p>
  194. * @return string a string if the option exists and has documentation available, or
  195. * false otherwise.
  196. */
  197. public function getOptDoc ($optname) {}
  198. /**
  199. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  200. * Indicates if the document is a XHTML document
  201. * @link http://php.net/manual/en/tidy.isxhtml.php
  202. * @return bool This function returns true if the specified tidy
  203. * object is a XHTML document, or false otherwise.
  204. * </p>
  205. * <p>
  206. * This function is not yet implemented in the Tidylib itself, so it always
  207. * return false.
  208. */
  209. public function isXhtml () {}
  210. /**
  211. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  212. * Indicates if the document is a generic (non HTML/XHTML) XML document
  213. * @link http://php.net/manual/en/tidy.isxml.php
  214. * @return bool This function returns true if the specified tidy
  215. * object is a generic XML document (non HTML/XHTML),
  216. * or false otherwise.
  217. * </p>
  218. * <p>
  219. * This function is not yet implemented in the Tidylib itself, so it always
  220. * return false.
  221. */
  222. public function isXml () {}
  223. /**
  224. * (PHP 5, PECL tidy 0.5.2-1.0.0)<br/>
  225. * Returns a <classname>tidyNode</classname> object representing the root of the tidy parse tree
  226. * @link http://php.net/manual/en/tidy.root.php
  227. * @return tidyNode the tidyNode object.
  228. */
  229. public function root () {}
  230. /**
  231. * (PHP 5, PECL tidy 0.5.2-1.0.0)<br/>
  232. * Returns a <classname>tidyNode</classname> object starting from the &lt;head&gt; tag of the tidy parse tree
  233. * @link http://php.net/manual/en/tidy.head.php
  234. * @return tidyNode the tidyNode object.
  235. */
  236. public function head () {}
  237. /**
  238. * (PHP 5, PECL tidy 0.5.2-1.0.0)<br/>
  239. * Returns a <classname>tidyNode</classname> object starting from the &lt;html&gt; tag of the tidy parse tree
  240. * @link http://php.net/manual/en/tidy.html.php
  241. * @return tidyNode the tidyNode object.
  242. */
  243. public function html () {}
  244. /**
  245. * (PHP 5, PECL tidy 0.5.2-1.0)<br/>
  246. * Returns a <classname>tidyNode</classname> object starting from the &lt;body&gt; tag of the tidy parse tree
  247. * @link http://php.net/manual/en/tidy.body.php
  248. * @return tidyNode the detected HTML version.
  249. * </p>
  250. * <p>
  251. * This function is not yet implemented in the Tidylib itself, so it always
  252. * return 0.
  253. */
  254. public function body () {}
  255. /**
  256. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  257. * Constructs a new <classname>tidy</classname> object
  258. * @link http://php.net/manual/en/tidy.construct.php
  259. * @param string $filename [optional] <p>
  260. * If the filename parameter is given, this function
  261. * will also read that file and initialize the object with the file,
  262. * acting like tidy_parse_file.
  263. * </p>
  264. * @param mixed $config [optional] <p>
  265. * The config config can be passed either as an
  266. * array or as a string. If a string is passed, it is interpreted as the
  267. * name of the configuration file, otherwise, it is interpreted as the
  268. * options themselves.
  269. * </p>
  270. * <p>
  271. * For an explanation about each option, visit &url.tidy.conf;.
  272. * </p>
  273. * @param string $encoding [optional] <p>
  274. * The encoding parameter sets the encoding for
  275. * input/output documents. The possible values for encoding are:
  276. * ascii, latin0, latin1,
  277. * raw, utf8, iso2022,
  278. * mac, win1252, ibm858,
  279. * utf16, utf16le, utf16be,
  280. * big5, and shiftjis.
  281. * </p>
  282. * @param bool $use_include_path [optional] <p>
  283. * Search for the file in the include_path.
  284. * </p>
  285. * @return tidy the new tidy instance.
  286. */
  287. public function __construct ($filename = null, $config = null, $encoding = null, $use_include_path = null) {}
  288. }
  289. /**
  290. * An HTML node in an HTML file, as detected by tidy.
  291. * @link http://php.net/manual/en/class.tidynode.php
  292. */
  293. final class tidyNode {
  294. /**
  295. * @var The HTML representation of the node, including the surrounding tags.
  296. */
  297. var $value;
  298. /**
  299. * @var The name of the HTML node
  300. */
  301. var $name;
  302. /**
  303. * @var The type of the tag (one of the constants above, e.g. TIDY_NODETYPE_PHP)
  304. */
  305. var $type;
  306. /**
  307. * @var The line number at which the tags is located in the file
  308. */
  309. var $line;
  310. /**
  311. * @var The column number at which the tags is located in the file
  312. */
  313. var $column;
  314. /**
  315. * @var Indicates if the node is a proprietary tag
  316. */
  317. var $proprietary;
  318. /**
  319. * @var The ID of the tag (one of the constants above, e.g. TIDY_TAG_FRAME)
  320. */
  321. var $id;
  322. /**
  323. * @var An array of string, representing the attributes names (as keys) of the current node.
  324. */
  325. var $attribute;
  326. /**
  327. * @var An array of TidyNode, representing the children of the current node.
  328. */
  329. var $child;
  330. /**
  331. * (PHP 5 &gt;= 5.0.1)<br/>
  332. * Checks if a node has children
  333. * @link http://php.net/manual/en/tidynode.haschildren.php
  334. * @return bool true if the node has children, false otherwise.
  335. */
  336. public function hasChildren () {}
  337. /**
  338. * (PHP 5 &gt;= 5.0.1)<br/>
  339. * Checks if a node has siblings
  340. * @link http://php.net/manual/en/tidynode.hassiblings.php
  341. * @return bool true if the node has siblings, false otherwise.
  342. */
  343. public function hasSiblings () {}
  344. /**
  345. * (PHP 5 &gt;= 5.0.1)<br/>
  346. * Checks if a node represents a comment
  347. * @link http://php.net/manual/en/tidynode.iscomment.php
  348. * @return bool true if the node is a comment, false otherwise.
  349. */
  350. public function isComment () {}
  351. /**
  352. * (PHP 5 &gt;= 5.0.1)<br/>
  353. * Checks if a node is part of a HTML document
  354. * @link http://php.net/manual/en/tidynode.ishtml.php
  355. * @return bool true if the node is part of a HTML document, false otherwise.
  356. */
  357. public function isHtml () {}
  358. /**
  359. * (PHP 5 &gt;= 5.0.1)<br/>
  360. * Checks if a node represents text (no markup)
  361. * @link http://php.net/manual/en/tidynode.istext.php
  362. * @return bool true if the node represent a text, false otherwise.
  363. */
  364. public function isText () {}
  365. /**
  366. * (PHP 5 &gt;= 5.0.1)<br/>
  367. * Checks if this node is JSTE
  368. * @link http://php.net/manual/en/tidynode.isjste.php
  369. * @return bool true if the node is JSTE, false otherwise.
  370. */
  371. public function isJste () {}
  372. /**
  373. * (PHP 5 &gt;= 5.0.1)<br/>
  374. * Checks if this node is ASP
  375. * @link http://php.net/manual/en/tidynode.isasp.php
  376. * @return bool true if the node is ASP, false otherwise.
  377. */
  378. public function isAsp () {}
  379. /**
  380. * (PHP 5 &gt;= 5.0.1)<br/>
  381. * Checks if a node is PHP
  382. * @link http://php.net/manual/en/tidynode.isphp.php
  383. * @return bool true if the current node is PHP code, false otherwise.
  384. */
  385. public function isPhp () {}
  386. /**
  387. * (PHP 5 &gt;= 5.2.2)<br/>
  388. * Returns the parent node of the current node
  389. * @link http://php.net/manual/en/tidynode.getparent.php
  390. * @return tidyNode a tidyNode if the node has a parent, or &null;
  391. * otherwise.
  392. */
  393. public function getParent () {}
  394. }
  395. /**
  396. * @param $option
  397. */
  398. function tidy_getopt ($option) {}
  399. /**
  400. * @param $input
  401. * @param $config_options [optional]
  402. * @param $encoding [optional]
  403. */
  404. function tidy_parse_string ($input, $config_options, $encoding) {}
  405. /**
  406. * @param $file
  407. * @param $config_options [optional]
  408. * @param $encoding [optional]
  409. * @param $use_include_path [optional]
  410. */
  411. function tidy_parse_file ($file, $config_options, $encoding, $use_include_path) {}
  412. /**
  413. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  414. * Return a string representing the parsed tidy markup
  415. * @link http://php.net/manual/en/function.tidy-get-output.php
  416. * @param tidy $object <p>
  417. * &tidy.object;
  418. * </p>
  419. * @return string the parsed tidy markup.
  420. */
  421. function tidy_get_output (tidy $object ) {}
  422. /**
  423. * Return warnings and errors which occurred parsing the specified document
  424. * @link http://php.net/manual/en/function.tidy-get-error-buffer.php
  425. * @param tidy $detailed[optional]
  426. */
  427. function tidy_get_error_buffer ($detailed) {}
  428. /**
  429. * Execute configured cleanup and repair operations on parsed markup
  430. * @link http://php.net/manual/en/function.tidy-clean-repair.php
  431. */
  432. function tidy_clean_repair () {}
  433. /**
  434. * Repair a string using an optionally provided configuration file
  435. * @link http://php.net/manual/en/function.tidy-repair-string.php
  436. * @param $data
  437. * @param $config_file [optional]
  438. * @param $encoding [optional]
  439. */
  440. function tidy_repair_string ($data, $config_file, $encoding) {}
  441. /**
  442. * Repair a file and return it as a string
  443. * @link http://php.net/manual/en/function.tidy-repair-file.php
  444. * @param $filename
  445. * @param $config_file [optional]
  446. * @param $encoding [optional]
  447. * @param $use_include_path [optional]
  448. */
  449. function tidy_repair_file ($filename, $config_file, $encoding, $use_include_path) {}
  450. /**
  451. * Run configured diagnostics on parsed and repaired markup
  452. * @link http://php.net/manual/en/function.tidy-diagnose.php
  453. */
  454. function tidy_diagnose () {}
  455. /**
  456. * Get release date (version) for Tidy library
  457. * @link http://php.net/manual/en/function.tidy-get-release.php
  458. * @return string a string with the release date of the Tidy library.
  459. */
  460. function tidy_get_release () {}
  461. /**
  462. * Get current Tidy configuration
  463. * @link http://php.net/manual/en/function.tidy-get-config.php
  464. */
  465. function tidy_get_config () {}
  466. /**
  467. * Get status of specified document
  468. * @link http://php.net/manual/en/function.tidy-get-status.php
  469. */
  470. function tidy_get_status () {}
  471. /**
  472. * Get the Detected HTML version for the specified document
  473. * @link http://php.net/manual/en/function.tidy-get-html-ver.php
  474. */
  475. function tidy_get_html_ver () {}
  476. /**
  477. * Indicates if the document is a XHTML document
  478. * @link http://php.net/manual/en/function.tidy-is-xhtml.php
  479. */
  480. function tidy_is_xhtml () {}
  481. /**
  482. * Indicates if the document is a generic (non HTML/XHTML) XML document
  483. * @link http://php.net/manual/en/function.tidy-is-xml.php
  484. */
  485. function tidy_is_xml () {}
  486. /**
  487. * Returns the Number of Tidy errors encountered for specified document
  488. * @link http://php.net/manual/en/function.tidy-error-count.php
  489. */
  490. function tidy_error_count () {}
  491. /**
  492. * Returns the Number of Tidy warnings encountered for specified document
  493. * @link http://php.net/manual/en/function.tidy-warning-count.php
  494. * @param $object tidy <p>
  495. * The Tidy object.
  496. * </p>
  497. * @return int the number of warnings.
  498. */
  499. function tidy_warning_count (tidy $object) {}
  500. /**
  501. * Returns the Number of Tidy accessibility warnings encountered for specified document
  502. * @link http://php.net/manual/en/function.tidy-access-count.php
  503. * @param $object tidy <p>
  504. * The Tidy object.
  505. * </p>
  506. * @return int the number of warnings.
  507. */
  508. function tidy_access_count (tidy $object) {}
  509. /**
  510. * (PHP 5, PECL tidy &gt;= 0.5.2)<br/>
  511. * Returns the Number of Tidy configuration errors encountered for specified document
  512. * @link http://php.net/manual/en/function.tidy-config-count.php
  513. * @param tidy $object <p>
  514. * &tidy.object;
  515. * </p>
  516. * @return int the number of errors.
  517. */
  518. function tidy_config_count (tidy $object) {}
  519. /**
  520. * Returns the documentation for the given option name
  521. * @link http://php.net/manual/en/function.tidy-get-opt-doc.php
  522. * @param $object tidy <p>
  523. * A tidy object
  524. * </p>
  525. * @param $optname string <p>
  526. * The option name
  527. * </p>
  528. * @return string a string if the option exists and has documentation available, or
  529. * false otherwise.
  530. */
  531. function tidy_get_opt_doc (tidy $object, $optname) {}
  532. /**
  533. * Returns a tidyNode object representing the root of the tidy parse tree
  534. * @link http://php.net/manual/en/function.tidy-get-root.php
  535. */
  536. function tidy_get_root () {}
  537. /**
  538. * Returns a tidyNode Object starting from the &lt;head&gt; tag of the tidy parse tree
  539. * @link http://php.net/manual/en/function.tidy-get-head.php
  540. */
  541. function tidy_get_head () {}
  542. /**
  543. * Returns a tidyNode Object starting from the &lt;html&gt; tag of the tidy parse tree
  544. * @link http://php.net/manual/en/function.tidy-get-html.php
  545. */
  546. function tidy_get_html () {}
  547. /**
  548. * Returns a tidyNode Object starting from the &lt;body&gt; tag of the tidy parse tree
  549. * @link http://php.net/manual/en/function.tidy-get-body.php
  550. * @param tidy
  551. */
  552. function tidy_get_body ($tidy) {}
  553. /**
  554. * (PHP 5)<br/>
  555. * ob_start callback function to repair the buffer
  556. * @link http://php.net/manual/en/function.ob-tidyhandler.php
  557. * @param string $input <p>
  558. * The buffer.
  559. * </p>
  560. * @param int $mode [optional] <p>
  561. * The buffer mode.
  562. * </p>
  563. * @return string the modified buffer.
  564. */
  565. function ob_tidyhandler ($input, $mode = null) {}
  566. /**
  567. * description
  568. * @link http://php.net/manual/en/tidy.constants.php
  569. */
  570. define ('TIDY_TAG_UNKNOWN', 0);
  571. define ('TIDY_TAG_A', 1);
  572. define ('TIDY_TAG_ABBR', 2);
  573. define ('TIDY_TAG_ACRONYM', 3);
  574. define ('TIDY_TAG_ADDRESS', 4);
  575. define ('TIDY_TAG_ALIGN', 5);
  576. define ('TIDY_TAG_APPLET', 6);
  577. define ('TIDY_TAG_AREA', 7);
  578. define ('TIDY_TAG_B', 8);
  579. define ('TIDY_TAG_BASE', 9);
  580. define ('TIDY_TAG_BASEFONT', 10);
  581. define ('TIDY_TAG_BDO', 11);
  582. define ('TIDY_TAG_BGSOUND', 12);
  583. define ('TIDY_TAG_BIG', 13);
  584. define ('TIDY_TAG_BLINK', 14);
  585. define ('TIDY_TAG_BLOCKQUOTE', 15);
  586. define ('TIDY_TAG_BODY', 16);
  587. define ('TIDY_TAG_BR', 17);
  588. define ('TIDY_TAG_BUTTON', 18);
  589. define ('TIDY_TAG_CAPTION', 19);
  590. define ('TIDY_TAG_CENTER', 20);
  591. define ('TIDY_TAG_CITE', 21);
  592. define ('TIDY_TAG_CODE', 22);
  593. define ('TIDY_TAG_COL', 23);
  594. define ('TIDY_TAG_COLGROUP', 24);
  595. define ('TIDY_TAG_COMMENT', 25);
  596. define ('TIDY_TAG_DD', 26);
  597. define ('TIDY_TAG_DEL', 27);
  598. define ('TIDY_TAG_DFN', 28);
  599. define ('TIDY_TAG_DIR', 29);
  600. define ('TIDY_TAG_DIV', 30);
  601. define ('TIDY_TAG_DL', 31);
  602. define ('TIDY_TAG_DT', 32);
  603. define ('TIDY_TAG_EM', 33);
  604. define ('TIDY_TAG_EMBED', 34);
  605. define ('TIDY_TAG_FIELDSET', 35);
  606. define ('TIDY_TAG_FONT', 36);
  607. define ('TIDY_TAG_FORM', 37);
  608. define ('TIDY_TAG_FRAME', 38);
  609. define ('TIDY_TAG_FRAMESET', 39);
  610. define ('TIDY_TAG_H1', 40);
  611. define ('TIDY_TAG_H2', 41);
  612. define ('TIDY_TAG_H3', 42);
  613. define ('TIDY_TAG_H4', 43);
  614. define ('TIDY_TAG_H5', 44);
  615. define ('TIDY_TAG_H6', 45);
  616. define ('TIDY_TAG_HEAD', 46);
  617. define ('TIDY_TAG_HR', 47);
  618. define ('TIDY_TAG_HTML', 48);
  619. define ('TIDY_TAG_I', 49);
  620. define ('TIDY_TAG_IFRAME', 50);
  621. define ('TIDY_TAG_ILAYER', 51);
  622. define ('TIDY_TAG_IMG', 52);
  623. define ('TIDY_TAG_INPUT', 53);
  624. define ('TIDY_TAG_INS', 54);
  625. define ('TIDY_TAG_ISINDEX', 55);
  626. define ('TIDY_TAG_KBD', 56);
  627. define ('TIDY_TAG_KEYGEN', 57);
  628. define ('TIDY_TAG_LABEL', 58);
  629. define ('TIDY_TAG_LAYER', 59);
  630. define ('TIDY_TAG_LEGEND', 60);
  631. define ('TIDY_TAG_LI', 61);
  632. define ('TIDY_TAG_LINK', 62);
  633. define ('TIDY_TAG_LISTING', 63);
  634. define ('TIDY_TAG_MAP', 64);
  635. define ('TIDY_TAG_MARQUEE', 65);
  636. define ('TIDY_TAG_MENU', 66);
  637. define ('TIDY_TAG_META', 67);
  638. define ('TIDY_TAG_MULTICOL', 68);
  639. define ('TIDY_TAG_NOBR', 69);
  640. define ('TIDY_TAG_NOEMBED', 70);
  641. define ('TIDY_TAG_NOFRAMES', 71);
  642. define ('TIDY_TAG_NOLAYER', 72);
  643. define ('TIDY_TAG_NOSAVE', 73);
  644. define ('TIDY_TAG_NOSCRIPT', 74);
  645. define ('TIDY_TAG_OBJECT', 75);
  646. define ('TIDY_TAG_OL', 76);
  647. define ('TIDY_TAG_OPTGROUP', 77);
  648. define ('TIDY_TAG_OPTION', 78);
  649. define ('TIDY_TAG_P', 79);
  650. define ('TIDY_TAG_PARAM', 80);
  651. define ('TIDY_TAG_PLAINTEXT', 81);
  652. define ('TIDY_TAG_PRE', 82);
  653. define ('TIDY_TAG_Q', 83);
  654. define ('TIDY_TAG_RB', 84);
  655. define ('TIDY_TAG_RBC', 85);
  656. define ('TIDY_TAG_RP', 86);
  657. define ('TIDY_TAG_RT', 87);
  658. define ('TIDY_TAG_RTC', 88);
  659. define ('TIDY_TAG_RUBY', 89);
  660. define ('TIDY_TAG_S', 90);
  661. define ('TIDY_TAG_SAMP', 91);
  662. define ('TIDY_TAG_SCRIPT', 92);
  663. define ('TIDY_TAG_SELECT', 93);
  664. define ('TIDY_TAG_SERVER', 94);
  665. define ('TIDY_TAG_SERVLET', 95);
  666. define ('TIDY_TAG_SMALL', 96);
  667. define ('TIDY_TAG_SPACER', 97);
  668. define ('TIDY_TAG_SPAN', 98);
  669. define ('TIDY_TAG_STRIKE', 99);
  670. define ('TIDY_TAG_STRONG', 100);
  671. define ('TIDY_TAG_STYLE', 101);
  672. define ('TIDY_TAG_SUB', 102);
  673. define ('TIDY_TAG_SUP', 103);
  674. define ('TIDY_TAG_TABLE', 104);
  675. define ('TIDY_TAG_TBODY', 105);
  676. define ('TIDY_TAG_TD', 106);
  677. define ('TIDY_TAG_TEXTAREA', 107);
  678. define ('TIDY_TAG_TFOOT', 108);
  679. define ('TIDY_TAG_TH', 109);
  680. define ('TIDY_TAG_THEAD', 110);
  681. define ('TIDY_TAG_TITLE', 111);
  682. define ('TIDY_TAG_TR', 112);
  683. define ('TIDY_TAG_TT', 113);
  684. define ('TIDY_TAG_U', 114);
  685. define ('TIDY_TAG_UL', 115);
  686. define ('TIDY_TAG_VAR', 116);
  687. define ('TIDY_TAG_WBR', 117);
  688. define ('TIDY_TAG_XMP', 118);
  689. /**
  690. * root node
  691. * @link http://php.net/manual/en/tidy.constants.php
  692. */
  693. define ('TIDY_NODETYPE_ROOT', 0);
  694. /**
  695. * doctype
  696. * @link http://php.net/manual/en/tidy.constants.php
  697. */
  698. define ('TIDY_NODETYPE_DOCTYPE', 1);
  699. /**
  700. * HTML comment
  701. * @link http://php.net/manual/en/tidy.constants.php
  702. */
  703. define ('TIDY_NODETYPE_COMMENT', 2);
  704. /**
  705. * Processing Instruction
  706. * @link http://php.net/manual/en/tidy.constants.php
  707. */
  708. define ('TIDY_NODETYPE_PROCINS', 3);
  709. /**
  710. * Text
  711. * @link http://php.net/manual/en/tidy.constants.php
  712. */
  713. define ('TIDY_NODETYPE_TEXT', 4);
  714. /**
  715. * start tag
  716. * @link http://php.net/manual/en/tidy.constants.php
  717. */
  718. define ('TIDY_NODETYPE_START', 5);
  719. /**
  720. * end tag
  721. * @link http://php.net/manual/en/tidy.constants.php
  722. */
  723. define ('TIDY_NODETYPE_END', 6);
  724. /**
  725. * empty tag
  726. * @link http://php.net/manual/en/tidy.constants.php
  727. */
  728. define ('TIDY_NODETYPE_STARTEND', 7);
  729. /**
  730. * CDATA
  731. * @link http://php.net/manual/en/tidy.constants.php
  732. */
  733. define ('TIDY_NODETYPE_CDATA', 8);
  734. /**
  735. * XML section
  736. * @link http://php.net/manual/en/tidy.constants.php
  737. */
  738. define ('TIDY_NODETYPE_SECTION', 9);
  739. /**
  740. * ASP code
  741. * @link http://php.net/manual/en/tidy.constants.php
  742. */
  743. define ('TIDY_NODETYPE_ASP', 10);
  744. /**
  745. * JSTE code
  746. * @link http://php.net/manual/en/tidy.constants.php
  747. */
  748. define ('TIDY_NODETYPE_JSTE', 11);
  749. /**
  750. * PHP code
  751. * @link http://php.net/manual/en/tidy.constants.php
  752. */
  753. define ('TIDY_NODETYPE_PHP', 12);
  754. /**
  755. * XML declaration
  756. * @link http://php.net/manual/en/tidy.constants.php
  757. */
  758. define ('TIDY_NODETYPE_XMLDECL', 13);
  759. // End of tidy v.2.0
  760. ?>