xref: /PHP-8.4/ext/xsl/php_xsl.stub.php (revision 6e7adb3c)
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    public bool $doXInclude = false;
75
76    public bool $cloneDocument = false;
77
78    public int $maxTemplateDepth;
79
80    public int $maxTemplateVars;
81
82    /**
83     * @param DOMDocument|Dom\Document|SimpleXMLElement $stylesheet
84     * @tentative-return-type
85     */
86    public function importStylesheet(object $stylesheet): bool {}
87
88    /**
89     * @param DOMDocument|Dom\Document|SimpleXMLElement $document
90     * @tentative-return-type
91     */
92    public function transformToDoc(object $document, ?string $returnClass = null): object|false {}
93
94    /**
95     * @param DOMDocument|Dom\Document|SimpleXMLElement $document
96     * @tentative-return-type
97     */
98    public function transformToUri(object $document, string $uri): int {}
99
100    /**
101     * @param DOMDocument|Dom\Document|SimpleXMLElement $document
102     * @tentative-return-type
103     */
104    public function transformToXml(object $document): string|null|false {}
105
106    /** @tentative-return-type */
107    public function setParameter(string $namespace, array|string $name, ?string $value = null): bool {}
108
109    /** @tentative-return-type */
110    public function getParameter(string $namespace, string $name): string|false {}
111
112    /** @tentative-return-type */
113    public function removeParameter(string $namespace, string $name): bool {}
114
115    /** @tentative-return-type */
116    public function hasExsltSupport(): bool {}
117
118    /** @tentative-return-type */
119    public function registerPHPFunctions(array|string|null $functions = null): void {}
120
121    public function registerPHPFunctionNS(string $namespaceURI, string $name, callable $callable): void {}
122
123    /** @tentative-return-type */
124    public function setProfiling(?string $filename): true {}
125
126    /** @tentative-return-type */
127    public function setSecurityPrefs(int $preferences): int {}
128
129    /** @tentative-return-type */
130    public function getSecurityPrefs(): int {}
131}
132