PHP Class ForkCMS\Bundle\InstallerBundle\Form\Type\ModulesType

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

Public Methods

Method Description
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options ) Make sure the required modules are checked and can't be desalbed
getName ( )
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )

Protected Methods

Method Description
getInstallableModules ( ) : array Get all the modules that can be installed
removeHiddenModules ( array &$modules ) Remove the hidden modules from the modules array

Method Details

buildForm() public method

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

finishView() public method

Make sure the required modules are checked and can't be desalbed
public finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView The FormView generated by Symfony
$form Symfony\Component\Form\FormInterface The form itself
$options array The array options

getInstallableModules() protected method

Get all the modules that can be installed
protected getInstallableModules ( ) : array
return array The modules

getName() public method

public getName ( )

removeHiddenModules() protected method

Remove the hidden modules from the modules array
protected removeHiddenModules ( array &$modules )
$modules array The modules we wan't to clean up

setDefaultOptions() public method

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolverInterface