PHP Class Matthias\SymfonyConsoleForm\Form\FormUtil

Show file Open project: matthiasnoback/symfony-console-form Class Usage Examples

Public Methods

Method Description
isCompound ( Symfony\Component\Form\FormInterface $form ) : boolean
isTypeInAncestry ( Symfony\Component\Form\FormInterface $form, mixed $type ) : boolean
label ( Symfony\Component\Form\FormInterface $form ) : string
type ( Symfony\Component\Form\FormInterface $form ) : string
typeAncestry ( Symfony\Component\Form\FormInterface $form ) : array
typeAncestryForType ( Symfony\Component\Form\ResolvedFormTypeInterface $formType = null, array &$types )

Private Methods

Method Description
humanize ( $text ) : string Copied from Symfony\Component\Form method humanize.

Method Details

isCompound() public static method

public static isCompound ( Symfony\Component\Form\FormInterface $form ) : boolean
$form Symfony\Component\Form\FormInterface
return boolean

isTypeInAncestry() public static method

public static isTypeInAncestry ( Symfony\Component\Form\FormInterface $form, mixed $type ) : boolean
$form Symfony\Component\Form\FormInterface
$type mixed
return boolean

label() public static method

public static label ( Symfony\Component\Form\FormInterface $form ) : string
$form Symfony\Component\Form\FormInterface
return string

type() public static method

public static type ( Symfony\Component\Form\FormInterface $form ) : string
$form Symfony\Component\Form\FormInterface
return string

typeAncestry() public static method

public static typeAncestry ( Symfony\Component\Form\FormInterface $form ) : array
$form Symfony\Component\Form\FormInterface
return array

typeAncestryForType() public static method

public static typeAncestryForType ( Symfony\Component\Form\ResolvedFormTypeInterface $formType = null, array &$types )
$formType Symfony\Component\Form\ResolvedFormTypeInterface
$types array