PHP Class Neos\FluidAdaptor\Service\XsdGenerator

Inheritance: extends AbstractGenerator
显示文件 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface

Public Methods

Method Description
generateXsd ( string $viewHelperNamespace, string $xsdNamespace ) : string Generate the XML Schema definition for a given namespace.

Protected Methods

Method Description
addAttributes ( string $className, SimpleXMLElement $xsdElement ) : void Add attribute descriptions to a given tag.
addDocumentation ( string $documentation, SimpleXMLElement $xsdParentNode ) : void Add documentation XSD to a given XML node
generateXmlForClassName ( string $className, string $viewHelperNamespace, SimpleXMLElement $xmlRootNode ) : void Generate the XML Schema for a given class name.

Method Details

addAttributes() protected method

Initializes the view helper and its arguments, and then reads out the list of arguments.
protected addAttributes ( string $className, SimpleXMLElement $xsdElement ) : void
$className string Class name where to add the attribute descriptions
$xsdElement SimpleXMLElement XML element to add the attributes to.
return void

addDocumentation() protected method

Add documentation XSD to a given XML node
protected addDocumentation ( string $documentation, SimpleXMLElement $xsdParentNode ) : void
$documentation string Documentation string to add.
$xsdParentNode SimpleXMLElement Node to add the documentation to
return void

generateXmlForClassName() protected method

Generate the XML Schema for a given class name.
protected generateXmlForClassName ( string $className, string $viewHelperNamespace, SimpleXMLElement $xmlRootNode ) : void
$className string Class name to generate the schema for.
$viewHelperNamespace string Namespace prefix. Used to split off the first parts of the class name.
$xmlRootNode SimpleXMLElement XML root node where the xsd:element is appended.
return void

generateXsd() public method

It will generate an XSD file for all view helpers in this namespace.
public generateXsd ( string $viewHelperNamespace, string $xsdNamespace ) : string
$viewHelperNamespace string Namespace identifier to generate the XSD for, without leading Backslash.
$xsdNamespace string $xsdNamespace unique target namespace used in the XSD schema (for example "http://yourdomain.org/ns/viewhelpers")
return string XML Schema definition

Property Details

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface