PHP Class Neos\FluidAdaptor\Service\AbstractGenerator

Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$abstractViewHelperReflectionClass Neos\Flow\Reflection\ClassReflection The reflection class for AbstractViewHelper. Is needed quite often, that's why we use a pre-initialized one.
$docCommentParser Neos\Flow\Reflection\DocCommentParser The doc comment parser.
$reflectionService Neos\Flow\Reflection\ReflectionService

Méthodes publiques

Méthode Description
__construct ( ) Constructor. Sets $this->abstractViewHelperReflectionClass

Méthodes protégées

Méthode Description
addChildWithCData ( SimpleXMLElement $parentXmlNode, string $childNodeName, string $childNodeValue ) : SimpleXMLElement Add a child node to $parentXmlNode, and wrap the contents inside a CDATA section.
getClassNamesInNamespace ( string $namespace ) : array Get all class names inside this namespace and return them as array.
getTagNameForClass ( string $className, string $namespace ) : string Get a tag name for a given ViewHelper class.

Method Details

__construct() public méthode

Constructor. Sets $this->abstractViewHelperReflectionClass
public __construct ( )

addChildWithCData() protected méthode

Add a child node to $parentXmlNode, and wrap the contents inside a CDATA section.
protected addChildWithCData ( SimpleXMLElement $parentXmlNode, string $childNodeName, string $childNodeValue ) : SimpleXMLElement
$parentXmlNode SimpleXMLElement Parent XML Node to add the child to
$childNodeName string Name of the child node
$childNodeValue string Value of the child node. Will be placed inside CDATA.
Résultat SimpleXMLElement the new element

getClassNamesInNamespace() protected méthode

Get all class names inside this namespace and return them as array.
protected getClassNamesInNamespace ( string $namespace ) : array
$namespace string
Résultat array Array of all class names inside a given namespace.

getTagNameForClass() protected méthode

Example: For the View Helper Neos\FluidAdaptor\ViewHelpers\Form\SelectViewHelper, and the namespace prefix Neos\FluidAdaptor\ViewHelpers\, this method returns "form.select".
protected getTagNameForClass ( string $className, string $namespace ) : string
$className string Class name
$namespace string Base namespace to use
Résultat string Tag name

Property Details

$abstractViewHelperReflectionClass protected_oe property

The reflection class for AbstractViewHelper. Is needed quite often, that's why we use a pre-initialized one.
protected ClassReflection,Neos\Flow\Reflection $abstractViewHelperReflectionClass
Résultat Neos\Flow\Reflection\ClassReflection

$docCommentParser protected_oe property

The doc comment parser.
protected DocCommentParser,Neos\Flow\Reflection $docCommentParser
Résultat Neos\Flow\Reflection\DocCommentParser

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Résultat Neos\Flow\Reflection\ReflectionService