PHP Class Neos\FluidAdaptor\Service\XsdGenerator

Inheritance: extends AbstractGenerator
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

addDocumentation() protected méthode

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
Résultat void

generateXmlForClassName() protected méthode

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.
Résultat void

generateXsd() public méthode

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")
Résultat string XML Schema definition

Property Details

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface