PHP Class TwbBundle\Form\View\Helper\TwbBundleForm

Inheritance: extends Zend\Form\View\Helper\Form
Datei anzeigen Open project: neilime/zf2-twb-bundle Class Usage Examples

Protected Properties

Property Type Description
$formLayout string Form layout (see LAYOUT_* consts)

Public Methods

Method Description
__invoke ( Zend\Form\FormInterface $oForm = null, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : TwbBundleForm | string
openTag ( Zend\Form\FormInterface $form = null ) : string Generate an opening form tag
render ( Zend\Form\FormInterface $oForm, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : string Render a form from the provided $oForm,

Protected Methods

Method Description
renderElements ( Zend\Form\FormInterface $oForm, string | null $sFormLayout = self::LAYOUT_HORIZONTAL ) : string
setFormClass ( Zend\Form\FormInterface $oForm, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : TwbBundleForm Sets form layout class

Method Details

__invoke() public method

See also: Form::__invoke()
public __invoke ( Zend\Form\FormInterface $oForm = null, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : TwbBundleForm | string
$oForm Zend\Form\FormInterface
$sFormLayout string
return TwbBundleForm | string

openTag() public method

Generate an opening form tag
public openTag ( Zend\Form\FormInterface $form = null ) : string
$form Zend\Form\FormInterface
return string

render() public method

Render a form from the provided $oForm,
See also: Form::render()
public render ( Zend\Form\FormInterface $oForm, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : string
$oForm Zend\Form\FormInterface
$sFormLayout string
return string

renderElements() protected method

protected renderElements ( Zend\Form\FormInterface $oForm, string | null $sFormLayout = self::LAYOUT_HORIZONTAL ) : string
$oForm Zend\Form\FormInterface
$sFormLayout string | null
return string

setFormClass() protected method

Sets form layout class
protected setFormClass ( Zend\Form\FormInterface $oForm, string $sFormLayout = self::LAYOUT_HORIZONTAL ) : TwbBundleForm
$oForm Zend\Form\FormInterface
$sFormLayout string
return TwbBundleForm

Property Details

$formLayout protected_oe property

Form layout (see LAYOUT_* consts)
protected string $formLayout
return string