icingaweb2-module-director/library/Director/Web/Form/QuickSubForm.php

37 lines
845 B
PHP
Raw Normal View History

2016-03-26 16:21:23 +01:00
<?php
namespace Icinga\Module\Director\Web\Form;
abstract class QuickSubForm extends QuickBaseForm
{
/**
* Whether or not form elements are members of an array
* @codingStandardsIgnoreStart
* @var bool
*/
protected $_isArray = true;
// @codingStandardsIgnoreEnd
/**
* Load the default decorators
*
2017-09-27 08:38:04 +02:00
* @return $this
2016-03-26 16:21:23 +01:00
*/
public function loadDefaultDecorators()
{
if ($this->loadDefaultDecoratorsIsDisabled()) {
return $this;
}
$decorators = $this->getDecorators();
if (empty($decorators)) {
$this->addDecorator('FormElements')
->addDecorator('HtmlTag', array('tag' => 'dl'))
->addDecorator('Fieldset')
->addDecorator('DtDdWrapper');
}
2017-09-27 08:38:04 +02:00
2016-03-26 16:21:23 +01:00
return $this;
}
}