Skip to content

Commit

Permalink
DateTimePicker: Extend our FormElement class
Browse files Browse the repository at this point in the history
fixes #7322
  • Loading branch information
lippserd committed Oct 6, 2014
1 parent 9db76bf commit 9be52a9
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions library/Icinga/Web/Form/Element/DateTimePicker.php
Expand Up @@ -5,27 +5,15 @@
namespace Icinga\Web\Form\Element;

use DateTime;
use Zend_Form_Element;
use Icinga\Web\Form;
use Icinga\Web\Form\FormElement;
use Icinga\Web\Form\Validator\DateTimeValidator;

/**
* A date-and-time input control
*
* @method DateTime getValue()
*/
class DateTimePicker extends Zend_Form_Element
class DateTimePicker extends FormElement
{
/**
* 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 Down Expand Up @@ -54,7 +42,7 @@ class DateTimePicker extends Zend_Form_Element

/**
* (non-PHPDoc)
* @see \Zend_Form_Element::init() For the method documentation.
* @see Zend_Form_Element::init() For the method documentation.
*/
public function init()
{
Expand Down

0 comments on commit 9be52a9

Please sign in to comment.