1<?php 2 3/** @generate-class-entries */ 4 5/** @var int */ 6const XSL_CLONE_AUTO = 0; 7/** @var int */ 8const XSL_CLONE_NEVER = -1; 9/** @var int */ 10const XSL_CLONE_ALWAYS = 1; 11 12/** 13 * @var int 14 * @cvalue XSL_SECPREF_NONE 15 */ 16const XSL_SECPREF_NONE = UNKNOWN; 17/** 18 * @var int 19 * @cvalue XSL_SECPREF_READ_FILE 20 */ 21const XSL_SECPREF_READ_FILE = UNKNOWN; 22/** 23 * @var int 24 * @cvalue XSL_SECPREF_WRITE_FILE 25 */ 26const XSL_SECPREF_WRITE_FILE = UNKNOWN; 27/** 28 * @var int 29 * @cvalue XSL_SECPREF_CREATE_DIRECTORY 30 */ 31const XSL_SECPREF_CREATE_DIRECTORY = UNKNOWN; 32/** 33 * @var int 34 * @cvalue XSL_SECPREF_READ_NETWORK 35 */ 36const XSL_SECPREF_READ_NETWORK = UNKNOWN; 37/** 38 * @var int 39 * @cvalue XSL_SECPREF_WRITE_NETWORK 40 */ 41const XSL_SECPREF_WRITE_NETWORK = UNKNOWN; 42/** 43 * @var int 44 * @cvalue XSL_SECPREF_DEFAULT 45 */ 46const XSL_SECPREF_DEFAULT = UNKNOWN; 47 48/** 49 * @var int 50 * @cvalue LIBXSLT_VERSION 51 */ 52const LIBXSLT_VERSION = UNKNOWN; 53/** 54 * @var string 55 * @cvalue LIBXSLT_DOTTED_VERSION 56 */ 57const LIBXSLT_DOTTED_VERSION = UNKNOWN; 58 59#ifdef HAVE_XSL_EXSLT 60/** 61 * @var int 62 * @cvalue LIBEXSLT_VERSION 63 */ 64const LIBEXSLT_VERSION = UNKNOWN; 65/** 66 * @var string 67 * @cvalue LIBEXSLT_DOTTED_VERSION 68 */ 69const LIBEXSLT_DOTTED_VERSION = UNKNOWN; 70#endif 71 72class XSLTProcessor 73{ 74 /** 75 * @param DOMDocument|SimpleXMLElement $stylesheet 76 * @tentative-return-type 77 */ 78 public function importStylesheet(object $stylesheet): bool {} 79 80 /** 81 * @param DOMDocument|SimpleXMLElement $document 82 * @tentative-return-type 83 */ 84 public function transformToDoc(object $document, ?string $returnClass = null): object|false {} 85 86 /** 87 * @param DOMDocument|SimpleXMLElement $document 88 * @tentative-return-type 89 */ 90 public function transformToUri(object $document, string $uri): int {} 91 92 /** 93 * @param DOMDocument|SimpleXMLElement $document 94 * @tentative-return-type 95 */ 96 public function transformToXml(object $document): string|null|false {} 97 98 /** @tentative-return-type */ 99 public function setParameter(string $namespace, array|string $name, ?string $value = null): bool {} 100 101 /** @tentative-return-type */ 102 public function getParameter(string $namespace, string $name): string|false {} 103 104 /** @tentative-return-type */ 105 public function removeParameter(string $namespace, string $name): bool {} 106 107 /** @tentative-return-type */ 108 public function hasExsltSupport(): bool {} 109 110 /** @tentative-return-type */ 111 public function registerPHPFunctions(array|string|null $functions = null): void {} 112 113 /** @return true */ 114 public function setProfiling(?string $filename) {} // TODO make return type void 115 116 /** @tentative-return-type */ 117 public function setSecurityPrefs(int $preferences): int {} 118 119 /** @tentative-return-type */ 120 public function getSecurityPrefs(): int {} 121} 122