-
Notifications
You must be signed in to change notification settings - Fork 7
/
xsl.php
244 lines (217 loc) · 6.97 KB
/
xsl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?php
// Start of xsl v.7.0.4-7ubuntu2
/**
* @link http://php.net/manual/en/class.xsltprocessor.php
*/
class XSLTProcessor {
/**
* (PHP 5, PHP 7)<br/>
* Import stylesheet
* @link http://php.net/manual/en/xsltprocessor.importstylesheet.php
* @param object $stylesheet <p>
* The imported style sheet as a <b>DOMDocument</b> or
* <b>SimpleXMLElement</b> object.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function importStylesheet($stylesheet): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Transform to a DOMDocument
* @link http://php.net/manual/en/xsltprocessor.transformtodoc.php
* @param DOMNode $doc <p>
* The node to be transformed.
* </p>
* @return DOMDocument The resulting <b>DOMDocument</b> or <b>FALSE</b> on error.
*/
public function transformToDoc(DOMNode $doc): DOMDocument {}
/**
* (PHP 5, PHP 7)<br/>
* Transform to URI
* @link http://php.net/manual/en/xsltprocessor.transformtouri.php
* @param DOMDocument $doc <p>
* The document to transform.
* </p>
* @param string $uri <p>
* The target URI for the transformation.
* </p>
* @return int the number of bytes written or <b>FALSE</b> if an error occurred.
*/
public function transformToUri(DOMDocument $doc, string $uri): int {}
/**
* (PHP 5, PHP 7)<br/>
* Transform to XML
* @link http://php.net/manual/en/xsltprocessor.transformtoxml.php
* @param object $doc <p>
* The DOMDocument or SimpleXMLElement object to
* be transformed.
* </p>
* @return string The result of the transformation as a string or <b>FALSE</b> on error.
*/
public function transformToXml($doc): string {}
/**
* (PHP 5, PHP 7)<br/>
* Set value for a parameter
* @link http://php.net/manual/en/xsltprocessor.setparameter.php
* @param string $namespace <p>
* The namespace URI of the XSLT parameter.
* </p>
* @param string $name <p>
* The local name of the XSLT parameter.
* </p>
* @param string $value <p>
* The new value of the XSLT parameter.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function setParameter(string $namespace, string $name, string $value): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Get value of a parameter
* @link http://php.net/manual/en/xsltprocessor.getparameter.php
* @param string $namespaceURI <p>
* The namespace URI of the XSLT parameter.
* </p>
* @param string $localName <p>
* The local name of the XSLT parameter.
* </p>
* @return string The value of the parameter (as a string), or <b>FALSE</b> if it's not set.
*/
public function getParameter(string $namespaceURI, string $localName): string {}
/**
* (PHP 5, PHP 7)<br/>
* Remove parameter
* @link http://php.net/manual/en/xsltprocessor.removeparameter.php
* @param string $namespaceURI <p>
* The namespace URI of the XSLT parameter.
* </p>
* @param string $localName <p>
* The local name of the XSLT parameter.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function removeParameter(string $namespaceURI, string $localName): bool {}
/**
* (PHP 5 >= 5.0.4, PHP 7)<br/>
* Determine if PHP has EXSLT support
* @link http://php.net/manual/en/xsltprocessor.hasexsltsupport.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function hasExsltSupport(): bool {}
/**
* (PHP 5 >= 5.0.4, PHP 7)<br/>
* Enables the ability to use PHP functions as XSLT functions
* @link http://php.net/manual/en/xsltprocessor.registerphpfunctions.php
* @param mixed $restrict [optional] <p>
* Use this parameter to only allow certain functions to be called from
* XSLT.
* </p>
* <p>
* This parameter can be either a string (a function name) or an array of
* functions.
* </p>
* @return void No value is returned.
*/
public function registerPHPFunctions($restrict = null) {}
/**
* (PHP >= 5.3.0)<br/>
* Sets profiling output file
* @link http://php.net/manual/en/xsltprocessor.setprofiling.php
* @param string $filename <p>
* Path to the file to dump profiling information.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function setProfiling(string $filename): bool {}
/**
* (PHP >= 5.4.0)<br/>
* Set security preferences
* @link http://php.net/manual/en/xsltprocessor.setsecurityprefs.php
* @param int $securityPrefs <p>
* The new security preferences. The following constants can be ORed:
* <b>XSL_SECPREF_READ_FILE</b>,
* <b>XSL_SECPREF_WRITE_FILE</b>,
* <b>XSL_SECPREF_CREATE_DIRECTORY</b>,
* <b>XSL_SECPREF_READ_NETWORK</b>,
* <b>XSL_SECPREF_WRITE_NETWORK</b>. Alternatively,
* <b>XSL_SECPREF_NONE</b> or
* <b>XSL_SECPREF_DEFAULT</b> can be passed.
* </p>
* @return int the old security preferences.
*/
public function setSecurityPrefs(int $securityPrefs): int {}
/**
* (PHP >= 5.4.0)<br/>
* Get security preferences
* @link http://php.net/manual/en/xsltprocessor.getsecurityprefs.php
* @return int A bitmask consisting of <b>XSL_SECPREF_READ_FILE</b>,
* <b>XSL_SECPREF_WRITE_FILE</b>,
* <b>XSL_SECPREF_CREATE_DIRECTORY</b>,
* <b>XSL_SECPREF_READ_NETWORK</b>,
* <b>XSL_SECPREF_WRITE_NETWORK</b>.
*/
public function getSecurityPrefs(): int {}
}
define ('XSL_CLONE_AUTO', 0);
define ('XSL_CLONE_NEVER', -1);
define ('XSL_CLONE_ALWAYS', 1);
/**
* Deactivate all security restrictions.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_NONE', 0);
/**
* Disallows reading files.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_READ_FILE', 2);
/**
* Disallows writing files.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_WRITE_FILE', 4);
/**
* Disallows creating directories.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_CREATE_DIRECTORY', 8);
/**
* Disallows reading network files.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_READ_NETWORK', 16);
/**
* Disallows writing network files.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_WRITE_NETWORK', 32);
/**
* Disallows all write access, i.e. a bitmask of
* <b>XSL_SECPREF_WRITE_NETWORK</b> |
* <b>XSL_SECPREF_CREATE_DIRECTORY</b> |
* <b>XSL_SECPREF_WRITE_FILE</b>.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('XSL_SECPREF_DEFAULT', 44);
/**
* libxslt version like 10117. Available as of PHP 5.1.2.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('LIBXSLT_VERSION', 10128);
/**
* libxslt version like 1.1.17. Available as of PHP 5.1.2.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('LIBXSLT_DOTTED_VERSION', "1.1.28");
/**
* libexslt version like 813. Available as of PHP 5.1.2.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('LIBEXSLT_VERSION', 817);
/**
* libexslt version like 1.1.17. Available as of PHP 5.1.2.
* @link http://php.net/manual/en/xsl.constants.php
*/
define ('LIBEXSLT_DOTTED_VERSION', "1.1.28");
// End of xsl v.7.0.4-7ubuntu2
?>