Lines Matching refs:reader

57  * @param Reader $reader
61 function keyValue(Reader $reader, $namespace = null) { argument
64 if ($reader->isEmptyElement) {
65 $reader->next();
69 if (!$reader->read()) {
70 $reader->next();
75 if (Reader::END_ELEMENT === $reader->nodeType) {
76 $reader->next();
85 if ($reader->nodeType === Reader::ELEMENT) {
86 if ($namespace !== null && $reader->namespaceURI === $namespace) {
87 $values[$reader->localName] = $reader->parseCurrentElement()['value'];
89 $clark = $reader->getClark();
90 $values[$clark] = $reader->parseCurrentElement()['value'];
93 if (!$reader->read()) {
97 } while ($reader->nodeType !== Reader::END_ELEMENT);
99 $reader->read();
149 * @param Reader $reader
153 function enum(Reader $reader, $namespace = null) { argument
156 if ($reader->isEmptyElement) {
157 $reader->next();
160 if (!$reader->read()) {
161 $reader->next();
166 if (Reader::END_ELEMENT === $reader->nodeType) {
167 $reader->next();
171 $currentDepth = $reader->depth;
176 if ($reader->nodeType !== Reader::ELEMENT) {
179 if (!is_null($namespace) && $namespace === $reader->namespaceURI) {
180 $values[] = $reader->localName;
182 $values[] = $reader->getClark();
185 } while ($reader->depth >= $currentDepth && $reader->next());
187 $reader->next();
199 * @param Reader $reader
204 function valueObject(Reader $reader, $className, $namespace) { argument
207 if ($reader->isEmptyElement) {
208 $reader->next();
214 $reader->read();
217 if ($reader->nodeType === Reader::ELEMENT && $reader->namespaceURI == $namespace) {
219 if (property_exists($valueObject, $reader->localName)) {
220 if (is_array($defaultProperties[$reader->localName])) {
221 $valueObject->{$reader->localName}[] = $reader->parseCurrentElement()['value'];
223 $valueObject->{$reader->localName} = $reader->parseCurrentElement()['value'];
227 $reader->next();
230 if (!$reader->read()) {
234 } while ($reader->nodeType !== Reader::END_ELEMENT);
236 $reader->read();
262 * @param Reader $reader
266 function repeatingElements(Reader $reader, $childElementName) { argument
273 foreach ($reader->parseGetElements() as $element) {