2014-09-01 16:16:56 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2014-09-01 16:16:56 +02:00
|
|
|
|
2014-11-14 10:57:14 +01:00
|
|
|
namespace Icinga\Forms\Config;
|
2014-09-01 16:16:56 +02:00
|
|
|
|
2014-11-14 10:57:14 +01:00
|
|
|
use Icinga\Forms\Config\General\ApplicationConfigForm;
|
2017-05-31 18:11:37 +02:00
|
|
|
use Icinga\Forms\Config\General\DefaultAuthenticationDomainConfigForm;
|
2015-10-01 00:02:02 +02:00
|
|
|
use Icinga\Forms\Config\General\LoggingConfigForm;
|
2015-11-26 15:52:45 +01:00
|
|
|
use Icinga\Forms\Config\General\ThemingConfigForm;
|
2015-10-01 00:02:02 +02:00
|
|
|
use Icinga\Forms\ConfigForm;
|
2014-09-01 16:16:56 +02:00
|
|
|
|
|
|
|
/**
|
2015-11-26 15:52:45 +01:00
|
|
|
* Configuration form for application-wide options
|
2014-09-01 16:16:56 +02:00
|
|
|
*/
|
|
|
|
class GeneralConfigForm extends ConfigForm
|
|
|
|
{
|
|
|
|
/**
|
2015-11-26 15:52:45 +01:00
|
|
|
* {@inheritdoc}
|
2014-09-01 16:16:56 +02:00
|
|
|
*/
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
$this->setName('form_config_general');
|
2015-01-19 11:26:23 +01:00
|
|
|
$this->setSubmitLabel($this->translate('Save Changes'));
|
2014-09-01 16:16:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-11-26 15:52:45 +01:00
|
|
|
* {@inheritdoc}
|
2014-09-01 16:16:56 +02:00
|
|
|
*/
|
|
|
|
public function createElements(array $formData)
|
|
|
|
{
|
|
|
|
$appConfigForm = new ApplicationConfigForm();
|
|
|
|
$loggingConfigForm = new LoggingConfigForm();
|
2015-11-26 15:52:45 +01:00
|
|
|
$themingConfigForm = new ThemingConfigForm();
|
2017-05-31 18:11:37 +02:00
|
|
|
$domainConfigForm = new DefaultAuthenticationDomainConfigForm();
|
2015-11-26 15:52:45 +01:00
|
|
|
$this->addSubForm($appConfigForm->create($formData));
|
|
|
|
$this->addSubForm($loggingConfigForm->create($formData));
|
|
|
|
$this->addSubForm($themingConfigForm->create($formData));
|
2017-05-31 18:11:37 +02:00
|
|
|
$this->addSubForm($domainConfigForm->create($formData));
|
2014-09-01 16:16:56 +02:00
|
|
|
}
|
|
|
|
}
|