tidy.stub.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php
  2. /** @generate-class-entries */
  3. function tidy_parse_string(string $string, array|string|null $config = null, ?string $encoding = null): tidy|false {}
  4. function tidy_get_error_buffer(tidy $tidy): string|false {}
  5. function tidy_get_output(tidy $tidy): string {}
  6. function tidy_parse_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): tidy|false {}
  7. function tidy_clean_repair(tidy $tidy): bool {}
  8. function tidy_repair_string(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
  9. function tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
  10. function tidy_diagnose(tidy $tidy): bool {}
  11. function tidy_get_release(): string {}
  12. #ifdef HAVE_TIDYOPTGETDOC
  13. function tidy_get_opt_doc(tidy $tidy, string $option): string|false {}
  14. #endif
  15. function tidy_get_config(tidy $tidy): array {}
  16. function tidy_get_status(tidy $tidy): int {}
  17. function tidy_get_html_ver(tidy $tidy): int {}
  18. function tidy_is_xhtml(tidy $tidy): bool {}
  19. function tidy_is_xml(tidy $tidy): bool {}
  20. function tidy_error_count(tidy $tidy): int {}
  21. function tidy_warning_count(tidy $tidy): int {}
  22. function tidy_access_count(tidy $tidy): int {}
  23. function tidy_config_count(tidy $tidy): int {}
  24. function tidy_getopt(tidy $tidy, string $option): string|int|bool {}
  25. function tidy_get_root(tidy $tidy): ?tidyNode {}
  26. function tidy_get_html(tidy $tidy): ?tidyNode {}
  27. function tidy_get_head(tidy $tidy): ?tidyNode {}
  28. function tidy_get_body(tidy $tidy): ?tidyNode {}
  29. class tidy
  30. {
  31. public function __construct(?string $filename = null, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false) {}
  32. /**
  33. * @tentative-return-type
  34. * @alias tidy_getopt
  35. */
  36. public function getOpt(string $option): string|int|bool {}
  37. /**
  38. * @tentative-return-type
  39. * @alias tidy_clean_repair
  40. */
  41. public function cleanRepair(): bool {}
  42. /** @tentative-return-type */
  43. public function parseFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): bool {}
  44. /** @tentative-return-type */
  45. public function parseString(string $string, array|string|null $config = null, ?string $encoding = null): bool {}
  46. /**
  47. * @tentative-return-type
  48. * @alias tidy_repair_string
  49. */
  50. public static function repairString(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
  51. /**
  52. * @tentative-return-type
  53. * @alias tidy_repair_file
  54. */
  55. public static function repairFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
  56. /**
  57. * @tentative-return-type
  58. * @alias tidy_diagnose
  59. */
  60. public function diagnose(): bool {}
  61. /**
  62. * @tentative-return-type
  63. * @alias tidy_get_release
  64. */
  65. public function getRelease(): string {}
  66. /**
  67. * @tentative-return-type
  68. * @alias tidy_get_config
  69. */
  70. public function getConfig(): array {}
  71. /**
  72. * @tentative-return-type
  73. * @alias tidy_get_status
  74. */
  75. public function getStatus(): int {}
  76. /**
  77. * @tentative-return-type
  78. * @alias tidy_get_html_ver
  79. */
  80. public function getHtmlVer(): int {}
  81. #ifdef HAVE_TIDYOPTGETDOC
  82. /**
  83. * @tentative-return-type
  84. * @alias tidy_get_opt_doc
  85. */
  86. public function getOptDoc(string $option): string|false {}
  87. #endif
  88. /**
  89. * @tentative-return-type
  90. * @alias tidy_is_xhtml
  91. */
  92. public function isXhtml(): bool {}
  93. /**
  94. * @tentative-return-type
  95. * @alias tidy_is_xml
  96. */
  97. public function isXml(): bool {}
  98. /**
  99. * @tentative-return-type
  100. * @alias tidy_get_root
  101. */
  102. public function root(): ?tidyNode {}
  103. /**
  104. * @tentative-return-type
  105. * @alias tidy_get_head
  106. */
  107. public function head(): ?tidyNode {}
  108. /**
  109. * @tentative-return-type
  110. * @alias tidy_get_html
  111. */
  112. public function html(): ?tidyNode {}
  113. /**
  114. * @tentative-return-type
  115. * @alias tidy_get_body
  116. */
  117. public function body(): ?tidyNode {}
  118. }
  119. final class tidyNode
  120. {
  121. private function __construct() {}
  122. public function hasChildren(): bool {}
  123. public function hasSiblings(): bool {}
  124. public function isComment(): bool {}
  125. public function isHtml(): bool {}
  126. public function isText(): bool {}
  127. public function isJste(): bool {}
  128. public function isAsp(): bool {}
  129. public function isPhp(): bool {}
  130. public function getParent(): ?tidyNode {}
  131. }