form: Ignore note elments when retrieving values at form level

This commit is contained in:
Eric Lippmann 2014-10-01 08:18:34 +02:00
parent fa9bd59565
commit bbee06b57f

View File

@ -7,7 +7,7 @@ namespace Icinga\Web\Form\Element;
use Zend_Form_Element; use Zend_Form_Element;
/** /**
* Implements note element for Zend forms * A note
*/ */
class Note extends Zend_Form_Element class Note extends Zend_Form_Element
{ {
@ -23,16 +23,24 @@ class Note extends Zend_Form_Element
protected $_disableLoadDefaultDecorators = true; protected $_disableLoadDefaultDecorators = true;
/** /**
* Name of the view helper * Form view helper to use for rendering
* *
* @var string * @var string
*/ */
public $helper = 'formNote'; public $helper = 'formNote';
/** /**
* Return true to ensure redrawing * Ignore element when retrieving values at form level
*
* @var bool
*/
protected $_ignore = true;
/**
* Validate element value (pseudo)
*
* @param mixed $value Ignored
* *
* @param mixed $value The value of to validate (ignored)
* @return bool Always true * @return bool Always true
*/ */
public function isValid($value) public function isValid($value)