PHP Class TwbBundle\Form\View\Helper\TwbBundleFormErrors

Inheritance: extends Zend\Form\View\Helper\AbstractHelper
Mostra file Open project: neilime/zf2-twb-bundle

Protected Properties

Property Type Description
$defaultErrorText
$messageCloseString
$messageOpenFormat
$messageSeparatorString

Public Methods

Method Description
__invoke ( Zend\Form\FormInterface $oForm = null, string $sMessage = null, string $bDismissable = false ) : string | null Invoke as function
dangerAlert ( string $content, boolean $bDismissable = false ) : string Creates and returns a "danger" alert.
render ( Zend\Form\FormInterface $oForm, $sMessage, $bDismissable = false ) : string Renders the error messages.

Method Details

__invoke() public method

Invoke as function
public __invoke ( Zend\Form\FormInterface $oForm = null, string $sMessage = null, string $bDismissable = false ) : string | null
$oForm Zend\Form\FormInterface
$sMessage string
$bDismissable string
return string | null

dangerAlert() public method

Creates and returns a "danger" alert.
public dangerAlert ( string $content, boolean $bDismissable = false ) : string
$content string
$bDismissable boolean
return string

render() public method

Renders the error messages.
public render ( Zend\Form\FormInterface $oForm, $sMessage, $bDismissable = false ) : string
$oForm Zend\Form\FormInterface
return string

Property Details

$defaultErrorText protected_oe property

protected $defaultErrorText

$messageCloseString protected_oe property

protected $messageCloseString

$messageOpenFormat protected_oe property

protected $messageOpenFormat

$messageSeparatorString protected_oe property

protected $messageSeparatorString