Lines Matching refs:writer
37 * @param Writer $writer
41 function enum(Writer $writer, array $values) { argument
44 $writer->writeElement($value);
57 * @param Writer $writer
61 function valueObject(Writer $writer, $valueObject, $namespace) { argument
67 $writer->writeElement('{' . $namespace . '}' . $key, $child);
71 $writer->writeElement('{' . $namespace . '}' . $key, $val);
92 * @param Writer $writer
97 function repeatingElements(Writer $writer, array $items, $childElementName) { argument
100 $writer->writeElement($childElementName, $item);
160 * @param Writer $writer
164 function standardSerializer(Writer $writer, $value) { argument
169 $writer->text($value);
174 $value->xmlSerialize($writer);
176 } elseif (is_object($value) && isset($writer->classMap[get_class($value)])) {
179 $writer->classMap[get_class($value)]($writer, $value);
184 $value($writer);
199 $writer->startElement($name);
200 $writer->writeAttributes($attributes);
201 $writer->write($value);
202 $writer->endElement();
212 standardSerializer($writer, $item);
218 $writer->startElement($name);
219 $writer->writeAttributes($item['attributes']);
221 $writer->write($item['value']);
223 $writer->endElement();
228 $writer->startElement($name);
229 $writer->write($item);
230 $writer->endElement();