protected function addAttributes($className, \SimpleXMLElement $xsdElement)
    {
        /** @var AbstractViewHelper $viewHelper */
        $viewHelper = $this->objectManager->get($className);
        $argumentDefinitions = $viewHelper->prepareArguments();

        /** @var $argumentDefinition ArgumentDefinition */
        foreach ($argumentDefinitions as $argumentDefinition) {
            $xsdAttribute = $xsdElement->addChild('xsd:attribute');
            $xsdAttribute['type'] = 'xsd:string';
            $xsdAttribute['name'] = $argumentDefinition->getName();
            $this->addDocumentation($argumentDefinition->getDescription(), $xsdAttribute);
            if ($argumentDefinition->isRequired()) {
                $xsdAttribute['use'] = 'required';
            }
        }
    }
protected function addAttributes($className, \SimpleXMLElement $xsdElement)
    {
        /** @var AbstractViewHelper $viewHelper */
        $viewHelper = $this->objectManager->get($className);
        $argumentDefinitions = $viewHelper->prepareArguments();

        /** @var $argumentDefinition ArgumentDefinition */
        foreach ($argumentDefinitions as $argumentDefinition) {
            $xsdAttribute = $xsdElement->addChild('xsd:attribute');
            $xsdAttribute['type'] = 'xsd:string';
            $xsdAttribute['name'] = $argumentDefinition->getName();
            $this->addDocumentation($argumentDefinition->getDescription(), $xsdAttribute);
            if ($argumentDefinition->isRequired()) {
                $xsdAttribute['use'] = 'required';
            }
        }
    }
protected function addAttributes ( $ className , \ SimpleXMLElement $ xsdElement ) { /** @var AbstractViewHelper $viewHelper */ $ viewHelper = $ this -> objectManager -> get ( $ className ) ; $ argumentDefinitions = $ viewHelper -> prepareArguments ( ) ; /** @var $argumentDefinition ArgumentDefinition */ foreach ( $ argumentDefinitions as $ argumentDefinition ) { $ xsdAttribute = $ xsdElement -> addChild ( 'xsd:attribute' ) ; $ xsdAttribute [ 'type' ] = 'xsd:string' ; $ xsdAttribute [ 'name' ] = $ argumentDefinition -> getName ( ) ; $ this -> addDocumentation ( $ argumentDefinition -> getDescription ( ) , $ xsdAttribute ) ; if ( $ argumentDefinition -> isRequired ( ) ) { $ xsdAttribute [ 'use' ] = 'required' ; } } }
Add attribute descriptions to a given tag.
Initializes the view helper and its arguments, and then reads out the list of arguments.

@param string $className Class name where to add the attribute descriptions
@param \SimpleXMLElement $xsdElement XML element to add the attributes to.
@return void
Add attribute descriptions to a given tag . Initializes the view helper and its arguments and then reads out the list of arguments .