php_xmlwriter.stub.php 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <?php
  2. /** @generate-class-entries */
  3. function xmlwriter_open_uri(string $uri): XMLWriter|false {}
  4. function xmlwriter_open_memory(): XMLWriter|false {}
  5. function xmlwriter_set_indent(XMLWriter $writer, bool $enable): bool {}
  6. function xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool {}
  7. function xmlwriter_start_comment(XMLWriter $writer): bool {}
  8. function xmlwriter_end_comment(XMLWriter $writer): bool {}
  9. function xmlwriter_start_attribute(XMLWriter $writer, string $name): bool {}
  10. function xmlwriter_end_attribute(XMLWriter $writer): bool {}
  11. function xmlwriter_write_attribute(XMLWriter $writer, string $name, string $value): bool {}
  12. function xmlwriter_start_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
  13. function xmlwriter_write_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {}
  14. function xmlwriter_start_element(XMLWriter $writer, string $name): bool {}
  15. function xmlwriter_end_element(XMLWriter $writer): bool {}
  16. function xmlwriter_full_end_element(XMLWriter $writer): bool {}
  17. function xmlwriter_start_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
  18. function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {}
  19. function xmlwriter_write_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {}
  20. function xmlwriter_start_pi(XMLWriter $writer, string $target): bool {}
  21. function xmlwriter_end_pi(XMLWriter $writer): bool {}
  22. function xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool {}
  23. function xmlwriter_start_cdata(XMLWriter $writer): bool {}
  24. function xmlwriter_end_cdata(XMLWriter $writer): bool {}
  25. function xmlwriter_write_cdata(XMLWriter $writer, string $content): bool {}
  26. function xmlwriter_text(XMLWriter $writer, string $content): bool {}
  27. function xmlwriter_write_raw(XMLWriter $writer, string $content): bool {}
  28. function xmlwriter_start_document(XMLWriter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
  29. function xmlwriter_end_document(XMLWriter $writer): bool {}
  30. function xmlwriter_write_comment(XMLWriter $writer, string $content): bool {}
  31. function xmlwriter_start_dtd(XMLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
  32. function xmlwriter_end_dtd(XMLWriter $writer): bool {}
  33. function xmlwriter_write_dtd(XMLWriter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
  34. function xmlwriter_start_dtd_element(XMLWriter $writer, string $qualifiedName): bool {}
  35. function xmlwriter_end_dtd_element(XMLWriter $writer): bool {}
  36. function xmlwriter_write_dtd_element(XMLWriter $writer, string $name, string $content): bool {}
  37. function xmlwriter_start_dtd_attlist(XMLWriter $writer, string $name): bool {}
  38. function xmlwriter_end_dtd_attlist(XMLWriter $writer): bool {}
  39. function xmlwriter_write_dtd_attlist(XMLWriter $writer, string $name, string $content): bool {}
  40. function xmlwriter_start_dtd_entity(XMLWriter $writer, string $name, bool $isParam): bool {}
  41. function xmlwriter_end_dtd_entity(XMLWriter $writer): bool {}
  42. function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
  43. function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}
  44. function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
  45. class XMLWriter
  46. {
  47. /**
  48. * @tentative-return-type
  49. * @alias xmlwriter_open_uri
  50. * @no-verify Behaviour differs from the aliased function
  51. */
  52. public function openUri(string $uri): bool {}
  53. /**
  54. * @tentative-return-type
  55. * @alias xmlwriter_open_memory
  56. * @no-verify Behaviour differs from the aliased function
  57. */
  58. public function openMemory(): bool {}
  59. /**
  60. * @tentative-return-type
  61. * @alias xmlwriter_set_indent
  62. */
  63. public function setIndent(bool $enable): bool {}
  64. /**
  65. * @tentative-return-type
  66. * @alias xmlwriter_set_indent_string
  67. */
  68. public function setIndentString(string $indentation): bool {}
  69. /**
  70. * @tentative-return-type
  71. * @alias xmlwriter_start_comment
  72. */
  73. public function startComment(): bool {}
  74. /**
  75. * @tentative-return-type
  76. * @alias xmlwriter_end_comment
  77. */
  78. public function endComment(): bool {}
  79. /**
  80. * @tentative-return-type
  81. * @alias xmlwriter_start_attribute
  82. */
  83. public function startAttribute(string $name): bool {}
  84. /**
  85. * @tentative-return-type
  86. * @alias xmlwriter_end_attribute
  87. */
  88. public function endAttribute(): bool {}
  89. /**
  90. * @tentative-return-type
  91. * @alias xmlwriter_write_attribute
  92. */
  93. public function writeAttribute(string $name, string $value): bool {}
  94. /**
  95. * @tentative-return-type
  96. * @alias xmlwriter_start_attribute_ns
  97. */
  98. public function startAttributeNs(?string $prefix, string $name, ?string $namespace): bool {}
  99. /**
  100. * @tentative-return-type
  101. * @alias xmlwriter_write_attribute_ns
  102. */
  103. public function writeAttributeNs(?string $prefix, string $name, ?string $namespace, string $value): bool {}
  104. /**
  105. * @tentative-return-type
  106. * @alias xmlwriter_start_element
  107. */
  108. public function startElement(string $name): bool {}
  109. /**
  110. * @tentative-return-type
  111. * @alias xmlwriter_end_element
  112. */
  113. public function endElement(): bool {}
  114. /**
  115. * @tentative-return-type
  116. * @alias xmlwriter_full_end_element
  117. */
  118. public function fullEndElement(): bool {}
  119. /**
  120. * @tentative-return-type
  121. * @alias xmlwriter_start_element_ns
  122. */
  123. public function startElementNs(?string $prefix, string $name, ?string $namespace): bool {}
  124. /**
  125. * @tentative-return-type
  126. * @alias xmlwriter_write_element
  127. */
  128. public function writeElement(string $name, ?string $content = null): bool {}
  129. /**
  130. * @tentative-return-type
  131. * @alias xmlwriter_write_element_ns
  132. */
  133. public function writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {}
  134. /**
  135. * @tentative-return-type
  136. * @alias xmlwriter_start_pi
  137. */
  138. public function startPi(string $target): bool {}
  139. /**
  140. * @tentative-return-type
  141. * @alias xmlwriter_end_pi
  142. */
  143. public function endPi(): bool {}
  144. /**
  145. * @tentative-return-type
  146. * @alias xmlwriter_write_pi
  147. */
  148. public function writePi(string $target, string $content): bool {}
  149. /**
  150. * @tentative-return-type
  151. * @alias xmlwriter_start_cdata
  152. */
  153. public function startCdata(): bool {}
  154. /**
  155. * @tentative-return-type
  156. * @alias xmlwriter_end_cdata
  157. * */
  158. public function endCdata(): bool {}
  159. /**
  160. * @tentative-return-type
  161. * @alias xmlwriter_write_cdata
  162. */
  163. public function writeCdata(string $content): bool {}
  164. /**
  165. * @tentative-return-type
  166. * @alias xmlwriter_text
  167. */
  168. public function text(string $content): bool {}
  169. /**
  170. * @tentative-return-type
  171. * @alias xmlwriter_write_raw
  172. */
  173. public function writeRaw(string $content): bool {}
  174. /**
  175. * @tentative-return-type
  176. * @alias xmlwriter_start_document
  177. */
  178. public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
  179. /**
  180. * @tentative-return-type
  181. * @alias xmlwriter_end_document
  182. */
  183. public function endDocument(): bool {}
  184. /**
  185. * @tentative-return-type
  186. * @alias xmlwriter_write_comment
  187. */
  188. public function writeComment(string $content): bool {}
  189. /**
  190. * @tentative-return-type
  191. * @alias xmlwriter_start_dtd
  192. */
  193. public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
  194. /**
  195. * @tentative-return-type
  196. * @alias xmlwriter_end_dtd
  197. */
  198. public function endDtd(): bool {}
  199. /**
  200. * @tentative-return-type
  201. * @alias xmlwriter_write_dtd
  202. */
  203. public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
  204. /**
  205. * @tentative-return-type
  206. * @alias xmlwriter_start_dtd_element
  207. */
  208. public function startDtdElement(string $qualifiedName): bool {}
  209. /**
  210. * @tentative-return-type
  211. * @alias xmlwriter_end_dtd_element
  212. */
  213. public function endDtdElement(): bool {}
  214. /**
  215. * @tentative-return-type
  216. * @alias xmlwriter_write_dtd_element
  217. */
  218. public function writeDtdElement(string $name, string $content): bool {}
  219. /**
  220. * @tentative-return-type
  221. * @alias xmlwriter_start_dtd_attlist
  222. */
  223. public function startDtdAttlist(string $name): bool {}
  224. /**
  225. * @tentative-return-type
  226. * @alias xmlwriter_end_dtd_attlist
  227. */
  228. public function endDtdAttlist(): bool {}
  229. /**
  230. * @tentative-return-type
  231. * @alias xmlwriter_write_dtd_attlist
  232. */
  233. public function writeDtdAttlist(string $name, string $content): bool {}
  234. /**
  235. * @tentative-return-type
  236. * @alias xmlwriter_start_dtd_entity
  237. */
  238. public function startDtdEntity(string $name, bool $isParam): bool {}
  239. /**
  240. * @tentative-return-type
  241. * @alias xmlwriter_end_dtd_entity
  242. */
  243. public function endDtdEntity(): bool {}
  244. /**
  245. * @tentative-return-type
  246. * @alias xmlwriter_write_dtd_entity
  247. */
  248. public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
  249. /**
  250. * @tentative-return-type
  251. * @alias xmlwriter_output_memory
  252. */
  253. public function outputMemory(bool $flush = true): string {}
  254. /**
  255. * @tentative-return-type
  256. * @alias xmlwriter_flush
  257. */
  258. public function flush(bool $empty = true): string|int {}
  259. }