TYPO3
7.6
|
Public Member Functions | |
generateDocbook ($namespace) | |
Public Member Functions inherited from AbstractGenerator | |
__construct () | |
Protected Member Functions | |
generateXmlForClassName ($className, $namespace,\SimpleXMLElement $xmlRootNode) | |
addArguments ($className,\SimpleXMLElement $docbookSection) | |
instanciateViewHelper ($className) | |
addDocumentation ($documentation,\SimpleXMLElement $docbookSection) | |
addText ($text,\SimpleXMLElement $parentElement) | |
Protected Member Functions inherited from AbstractGenerator | |
getClassNamesInNamespace ($namespace) | |
getTagNameForClass ($className, $namespace) | |
addChildWithCData (\SimpleXMLElement $parentXmlNode, $childNodeName, $childNodeValue) | |
Private Member Functions | |
addArgumentTableRow (\SimpleXMLElement $parent, $name, $type, $required, $description, $default) | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractGenerator | |
$abstractViewHelperReflectionClass | |
$docCommentParser | |
$reflectionService | |
XML Schema (XSD) Generator. Will generate an XML schema which can be used for autocompletion in schema-aware editors like Eclipse XML editor.
Definition at line 20 of file DocbookGenerator.php.
|
protected |
Add attribute descriptions to a given tag. Initializes the view helper and its arguments, and then reads out the list of arguments.
string | $className | Class name where to add the attribute descriptions |
\SimpleXMLElement | $docbookSection | DocBook section to add the attributes to. |
Definition at line 86 of file DocbookGenerator.php.
References DocbookGenerator\addArgumentTableRow(), and DocbookGenerator\instanciateViewHelper().
Referenced by DocbookGenerator\generateXmlForClassName().
|
private |
\SimpleXMLElement | $parent | |
string | $name | |
string | $type | |
bool | $required | |
string | $description | |
string | $default |
Definition at line 125 of file DocbookGenerator.php.
Referenced by DocbookGenerator\addArguments().
|
protected |
Add documentation XSD to a given XML node
As Eclipse renders newlines only on new <xsd:documentation> tags, we wrap every line in a new <xsd:documentation> tag. Furthermore, eclipse strips out tags - the only way to prevent this is to have every line wrapped in a CDATA block AND to replace the < and > with their XML entities. (This is IMHO not XML conformant).
string | $documentation | Documentation string to add. |
\SimpleXMLElement | $docbookSection | Node to add the documentation to |
Definition at line 147 of file DocbookGenerator.php.
References DocbookGenerator\addText().
Referenced by DocbookGenerator\generateXmlForClassName().
|
protected |
string | $text | |
\SimpleXMLElement | $parentElement |
Definition at line 167 of file DocbookGenerator.php.
References AbstractGenerator\addChildWithCData().
Referenced by DocbookGenerator\addDocumentation().
generateDocbook | ( | $namespace | ) |
Generate the XML Schema definition for a given namespace.
string | $namespace | Namespace identifier to generate the XSD for, without leading Backslash. |
Definition at line 28 of file DocbookGenerator.php.
References DocbookGenerator\generateXmlForClassName(), AbstractGenerator\getClassNamesInNamespace(), and Fluid\NAMESPACE_SEPARATOR.
Referenced by DocbookGeneratorService\userFunc().
|
protected |
Generate the XML Schema for a given class name.
string | $className | Class name to generate the schema for. |
string | $namespace | Namespace prefix. Used to split off the first parts of the class name. |
\SimpleXMLElement | $xmlRootNode | XML root node where the xsd:element is appended. |
Definition at line 61 of file DocbookGenerator.php.
References DocbookGenerator\addArguments(), DocbookGenerator\addDocumentation(), and AbstractGenerator\getTagNameForClass().
Referenced by DocbookGenerator\generateDocbook().
|
protected |
Instantiate a view helper.
string | $className |
Definition at line 111 of file DocbookGenerator.php.
Referenced by DocbookGenerator\addArguments().