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
1 changed files with 13 additions and 5 deletions

View File

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