Inheritance diagram for RefXML:Reflects to XML.
Protected Properties | |
| array | $classes = [] |
| Only output root entities matching these names or namespaces. More... | |
| string[] | $exclude = [] |
| Excludes source files matching these strings. More... | |
| array | $sources = ['src'] |
| Source files and directories for inclusion. More... | |
Public Methods | |
| string | __toString () |
| void | generate () |
| string[] | getClasses () |
| string[] | getExclude () |
| string[] | getInterfaces () |
| string[] | getSources () |
| string[] | getTraits () |
| $this | setClasses (?string $List) |
| $this | setExclude (?string $excludePatternList) |
| $this | setSources (?string $sourceList) |
| bool void | startElement ($name, array $attrs=[]) |
| DOMDocument | toDOMDocument () |
| void | writeAttributes (array $attrs) |
| Writes multiple attributes, ignores empty strings. More... | |
| bool | writeElement ($name, $content=null, array $attrs=[], $cdata=false) |
| Can write an element with an array of attributes. More... | |
| writeList (string $listName, ?string $itemName, array $items, array $listAttrs=[], bool $cdata=false) | |
| Writes repeating elements. More... | |
Protected Methods | |
| void | _includeAll (array $paths) |
| void | _includeFile (string $file) |
| bool | filterNamespace (string $name) |
|
protected |
Only output root entities matching these names or namespaces.
Default: all namespaces
|
protected |
Excludes source files matching these strings.
|
protected |
Source files and directories for inclusion.
| string __toString | ( | ) |
|
protected |
| string | $name |
| string [] getClasses | ( | ) |
| string [] getExclude | ( | ) |
| string [] getInterfaces | ( | ) |
| string [] getSources | ( | ) |
| string [] getTraits | ( | ) |
| $this setClasses | ( | ?string | $List | ) |
| null | string | $List |
| $this setExclude | ( | ?string | $excludePatternList | ) |
| null | string | $excludePatternList |
| $this setSources | ( | ?string | $sourceList | ) |
| null | string | $sourceList |
| bool void startElement | ( | $name, | |
| array | $attrs = [] |
||
| ) |
| string | $name | |
| string[] | $attrs |
| DOMDocument toDOMDocument | ( | ) |
| void writeAttributes | ( | array | $attrs | ) |
Writes multiple attributes, ignores empty strings.
| string[] | $attrs |
| bool writeElement | ( | $name, | |
$content = null, |
|||
| array | $attrs = [], |
||
$cdata = false |
|||
| ) |
Can write an element with an array of attributes.
Will not write empty elements. Use attributes for that.
| string | $name | |
| string | XMLWriterInterface | $content | |
| string[] | $attrs | |
| bool | $cdata |
| writeList | ( | string | $listName, |
| ?string | $itemName, | ||
| array | $items, | ||
| array | $listAttrs = [], |
||
| bool | $cdata = false |
||
| ) |
Writes repeating elements.
| string | $listName | List container element name. |
| null | string | $itemName | Repeated list item name. This is ignored when $items can write themselves. |
| string[] | XMLWriterInterface[] | $items | List item contents. |
| string[] | $listAttrs | Attributes for $listName |
| bool | $cdata | Whether list items are CData. |