PHP Class Neos\FluidAdaptor\Service\AbstractGenerator

Show file Open project: neos/flow-development-collection

Protected Properties

Property 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

Public Methods

Method Description
__construct ( ) Constructor. Sets $this->abstractViewHelperReflectionClass

Protected Methods

Method 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 method

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

addChildWithCData() protected method

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.
return SimpleXMLElement the new element

getClassNamesInNamespace() protected method

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

getTagNameForClass() protected method

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
return string Tag name

Property Details

$abstractViewHelperReflectionClass protected 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
return Neos\Flow\Reflection\ClassReflection

$docCommentParser protected property

The doc comment parser.
protected DocCommentParser,Neos\Flow\Reflection $docCommentParser
return Neos\Flow\Reflection\DocCommentParser

$reflectionService protected property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService