Skip to content

Commit

Permalink
Note: Extend our FormElement class
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 6, 2014
1 parent 9be52a9 commit a3409b1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions library/Icinga/Web/Form/Element/Note.php
Expand Up @@ -5,23 +5,13 @@
namespace Icinga\Web\Form\Element;

use Zend_Form_Element;
use Icinga\Web\Form;

/**
* A note
*/
class Note extends Zend_Form_Element
{
/**
* 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;

/**
* Form view helper to use for rendering
*
Expand All @@ -36,6 +26,15 @@ class Note extends Zend_Form_Element
*/
protected $_ignore = true;

/**
* (non-PHPDoc)
* @see Zend_Form_Element::init() For the method documentation.
*/
public function init()
{
$this->setDecorators(Form::$defaultElementDecorators);
}

/**
* Validate element value (pseudo)
*
Expand Down

0 comments on commit a3409b1

Please sign in to comment.