php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_xmlreader.stub.php
Go to the documentation of this file.
1<?php
2
4
6{
7 /* Constants for NodeType - cannot define common types to share with dom as there are differences in these types */
8
12 public const int NONE = UNKNOWN;
16 public const int ELEMENT = UNKNOWN;
20 public const int ATTRIBUTE = UNKNOWN;
24 public const int TEXT = UNKNOWN;
28 public const int CDATA = UNKNOWN;
32 public const int ENTITY_REF = UNKNOWN;
36 public const int ENTITY = UNKNOWN;
40 public const int PI = UNKNOWN;
44 public const int COMMENT = UNKNOWN;
48 public const int DOC = UNKNOWN;
52 public const int DOC_TYPE = UNKNOWN;
56 public const int DOC_FRAGMENT = UNKNOWN;
60 public const int NOTATION = UNKNOWN;
64 public const int WHITESPACE = UNKNOWN;
68 public const int SIGNIFICANT_WHITESPACE = UNKNOWN;
72 public const int END_ELEMENT = UNKNOWN;
76 public const int END_ENTITY = UNKNOWN;
80 public const int XML_DECLARATION = UNKNOWN;
81
82 /* Constants for Parser options */
83
87 public const int LOADDTD = UNKNOWN;
91 public const int DEFAULTATTRS = UNKNOWN;
95 public const int VALIDATE = UNKNOWN;
99 public const int SUBST_ENTITIES = UNKNOWN;
100
101
103 public int $attributeCount;
104
106 public string $baseURI;
107
109 public int $depth;
110
112 public bool $hasAttributes;
113
115 public bool $hasValue;
116
118 public bool $isDefault;
119
121 public bool $isEmptyElement;
122
124 public string $localName;
125
127 public string $name;
128
130 public string $namespaceURI;
131
133 public int $nodeType;
134
136 public string $prefix;
137
139 public string $value;
140
142 public string $xmlLang;
143
145 public function close(): true {}
146
148 public function getAttribute(string $name): ?string {}
149
151 public function getAttributeNo(int $index): ?string {}
152
154 public function getAttributeNs(string $name, string $namespace): ?string {}
155
157 public function getParserProperty(int $property): bool {}
158
160 public function isValid(): bool {}
161
163 public function lookupNamespace(string $prefix): ?string {}
164
166 public function moveToAttribute(string $name): bool {}
167
169 public function moveToAttributeNo(int $index): bool {}
170
172 public function moveToAttributeNs(string $name, string $namespace): bool {}
173
175 public function moveToElement(): bool {}
176
179
182
184 public function read(): bool {}
185
187 public function next(?string $name = null): bool {}
188
190 public static function open(string $uri, ?string $encoding = null, int $flags = 0) {} // TODO Return type shouldn't be dependent on the call scope
191
192 public static function fromUri(string $uri, ?string $encoding = null, int $flags = 0): static {}
193
195 public static function fromStream($stream, ?string $encoding = null, int $flags = 0, ?string $documentUri = null): static {}
196
198 public function readInnerXml(): string {}
199
201 public function readOuterXml(): string {}
202
204 public function readString(): string {}
205
207 public function setSchema(?string $filename): bool {}
208
210 public function setParserProperty(int $property, bool $value): bool {}
211
213 public function setRelaxNGSchema(?string $filename): bool {}
214
216 public function setRelaxNGSchemaSource(?string $source): bool {}
217
219 public static function XML(string $source, ?string $encoding = null, int $flags = 0) {} // TODO Return type shouldn't be dependent on the call scope
220
221 public static function fromString(string $source, ?string $encoding = null, int $flags = 0): static {}
222
224 public function expand(?DOMNode $baseNode = null): DOMNode|false {}
225}
static fromUri(string $uri, ?string $encoding=null, int $flags=0)
const int SUBST_ENTITIES
getAttributeNs(string $name, string $namespace)
setSchema(?string $filename)
const int END_ENTITY
const int NOTATION
lookupNamespace(string $prefix)
static open(string $uri, ?string $encoding=null, int $flags=0)
const int ATTRIBUTE
const int DOC_TYPE
static XML(string $source, ?string $encoding=null, int $flags=0)
moveToAttributeNo(int $index)
const int ELEMENT
getAttributeNo(int $index)
const int END_ELEMENT
static fromString(string $source, ?string $encoding=null, int $flags=0)
const int ENTITY_REF
const int VALIDATE
setRelaxNGSchemaSource(?string $source)
const int SIGNIFICANT_WHITESPACE
const int DOC_FRAGMENT
setParserProperty(int $property, bool $value)
getAttribute(string $name)
const int DEFAULTATTRS
const int COMMENT
moveToAttributeNs(string $name, string $namespace)
getParserProperty(int $property)
moveToAttribute(string $name)
const int XML_DECLARATION
const int WHITESPACE
next(?string $name=null)
setRelaxNGSchema(?string $filename)
const int LOADDTD
static fromStream($stream, ?string $encoding=null, int $flags=0, ?string $documentUri=null)
expand(?DOMNode $baseNode=null)
$filename
Definition create.php:9
function(EX_VAR(opline->result.var))