PHP Class Elcodi\Admin\CurrencyBundle\Form\Type\MoneyType

Inheritance: extends Symfony\Component\Form\AbstractType
Datei anzeigen Open project: elcodi/bamboo

Protected Properties

Property Type Description
$currencyNamespace string currency namespace
$defaultCurrencyWrapper Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface Currency Wrapper

Public Methods

Method Description
__construct ( Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface $defaultCurrencyWrapper, string $currencyNamespace ) Construct method
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) Configures the options for this type.
getBlockPrefix ( ) : string Returns the prefix of the template block name for this type.
getName ( ) : string Returns the name of this type.

Method Details

__construct() public method

Construct method
public __construct ( Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface $defaultCurrencyWrapper, string $currencyNamespace )
$defaultCurrencyWrapper Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface Default Currency Wrapper
$currencyNamespace string Currency namespace

buildForm() public method

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array

configureOptions() public method

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.

getBlockPrefix() public method

The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
public getBlockPrefix ( ) : string
return string The prefix of the template block name

getName() public method

Returns the name of this type.
Deprecation: Deprecated since Symfony 2.8, to be removed from Symfony 3.
public getName ( ) : string
return string The name of this type

Property Details

$currencyNamespace protected_oe property

currency namespace
protected string $currencyNamespace
return string

$defaultCurrencyWrapper protected_oe property

Currency Wrapper
protected WrapperInterface,Elcodi\Component\Core\Wrapper\Interfaces $defaultCurrencyWrapper
return Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface