protected function metaComponentFactory($name, $value, $angularDirectives = false, $scope = '', $type = 'hidden')
    {
        /* @var Doozr_Form_Service_Component_Input $input */
        $input = $this->getRegistry()->getContainer()->build('doozr.form.service.component.input');

        $input->setName($name);
        $input->setType($type);
        $input->setValue($value);

        // Check for directive inject
        if (true === $angularDirectives) {
            $input->setAttribute('ng-model', sprintf('%s%s', $scope, $name));
            $input->setAttribute('value-transfer', $scope);
        }

        return $input;
    }
protected function metaComponentFactory($name, $value, $angularDirectives = false, $scope = '', $type = 'hidden')
    {
        /* @var Doozr_Form_Service_Component_Input $input */
        $input = $this->getRegistry()->getContainer()->build('doozr.form.service.component.input');

        $input->setName($name);
        $input->setType($type);
        $input->setValue($value);

        // Check for directive inject
        if (true === $angularDirectives) {
            $input->setAttribute('ng-model', sprintf('%s%s', $scope, $name));
            $input->setAttribute('value-transfer', $scope);
        }

        return $input;
    }
protected function metaComponentFactory ( $ name , $ value , $ angularDirectives = false , $ scope = '' , $ type = 'hidden' ) { /* @var Doozr_Form_Service_Component_Input $input */ $ input = $ this -> getRegistry ( ) -> getContainer ( ) -> build ( 'doozr.form.service.component.input' ) ; $ input -> setName ( $ name ) ; $ input -> setType ( $ type ) ; $ input -> setValue ( $ value ) ; // Check for directive inject if ( true === $ angularDirectives ) { $ input -> setAttribute ( 'ng-model' , sprintf ( '%s%s' , $ scope , $ name ) ) ; $ input -> setAttribute ( 'value-transfer' , $ scope ) ; } return $ input ; }
Factory for creating meta layer fields.

@param string $name              Name of the component
@param string $value             Value of the component
@param bool   $angularDirectives Whether to render with angular directives or not
@param string $scope             Scope to use for rendering
@param string $type              Type of the component

@author Benjamin Carl <opensource@clickalicious.de>

@return Doozr_Form_Service_Component_Input Input element
Factory for creating meta layer fields .