private function callBuilderMethod($item)
    {
        $settings = new InputSettingsForm;
        if (!$settings->isValid($item)) {
            throw new InvalidInputSettingsException;
        }
        $settings->bind($item, new \stdClass);

        $className = $item[InputSettingsForm::TYPE_PARAM];

        if(!class_exists($className)) {
            throw new NotFoundException();
        }
        if(!in_array($className, $this->builders)) {
            throw new NotDefinedException();
        }

        $method = new \ReflectionMethod($className, self::BUILDER_METHOD);
        return $method->invokeArgs(new $className, array($settings));
    }
private function callBuilderMethod($item)
    {
        $settings = new InputSettingsForm;
        if (!$settings->isValid($item)) {
            throw new InvalidInputSettingsException;
        }
        $settings->bind($item, new \stdClass);

        $className = $item[InputSettingsForm::TYPE_PARAM];

        if(!class_exists($className)) {
            throw new NotFoundException();
        }
        if(!in_array($className, $this->builders)) {
            throw new NotDefinedException();
        }

        $method = new \ReflectionMethod($className, self::BUILDER_METHOD);
        return $method->invokeArgs(new $className, array($settings));
    }
private function callBuilderMethod ( $ item ) { $ settings = new InputSettingsForm ; if ( ! $ settings -> isValid ( $ item ) ) { throw new InvalidInputSettingsException ; } $ settings -> bind ( $ item , new \ stdClass ) ; $ className = $ item [ InputSettingsForm :: TYPE_PARAM ] ; if ( ! class_exists ( $ className ) ) { throw new NotFoundException ( ) ; } if ( ! in_array ( $ className , $ this -> builders ) ) { throw new NotDefinedException ( ) ; } $ method = new \ ReflectionMethod ( $ className , self :: BUILDER_METHOD ) ; return $ method -> invokeArgs ( new $ className , array ( $ settings ) ) ; }
Proxies factory create call to specific responsible builder.
@param array $settings
@return \Phalcon\Forms\ElementInterface form element instance
@throws \Vegas\Forms\Builder\Exception\NotFoundException When a specific type is not found
Proxies factory create call to specific responsible builder .