2014-09-26 16:19:44 +02:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
namespace Icinga\Web\Form\Element;
|
|
|
|
|
2014-09-29 16:12:22 +02:00
|
|
|
use Zend_Form_Element;
|
2014-09-26 16:19:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements note element for Zend forms
|
|
|
|
*/
|
2014-09-29 16:12:22 +02:00
|
|
|
class Note extends Zend_Form_Element
|
2014-09-26 16:19:44 +02:00
|
|
|
{
|
2014-09-29 16:12:22 +02:00
|
|
|
/**
|
|
|
|
* Disable default decorators
|
|
|
|
*
|
|
|
|
* \Icinga\Web\Form sets default decorators for elements.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*
|
|
|
|
* @see \Icinga\Web\Form::__construct() For default element decorators.
|
|
|
|
*/
|
|
|
|
protected $_disableLoadDefaultDecorators = true;
|
|
|
|
|
2014-09-26 16:19:44 +02:00
|
|
|
/**
|
|
|
|
* Name of the view helper
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $helper = 'formNote';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return true to ensure redrawing
|
|
|
|
*
|
|
|
|
* @param mixed $value The value of to validate (ignored)
|
|
|
|
* @return bool Always true
|
|
|
|
*/
|
|
|
|
public function isValid($value)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|