mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-04-06 09:45:23 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
namespace Icinga\Forms\Config;
|
|
|
|
use Icinga\Forms\Config\General\ApplicationConfigForm;
|
|
use Icinga\Forms\Config\General\DefaultAuthenticationDomainConfigForm;
|
|
use Icinga\Forms\Config\General\LoggingConfigForm;
|
|
use Icinga\Forms\Config\General\ThemingConfigForm;
|
|
use Icinga\Forms\ConfigForm;
|
|
|
|
/**
|
|
* Configuration form for application-wide options
|
|
*/
|
|
class GeneralConfigForm extends ConfigForm
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function init()
|
|
{
|
|
$this->setName('form_config_general');
|
|
$this->setSubmitLabel($this->translate('Save Changes'));
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function createElements(array $formData)
|
|
{
|
|
$appConfigForm = new ApplicationConfigForm();
|
|
$loggingConfigForm = new LoggingConfigForm();
|
|
$themingConfigForm = new ThemingConfigForm();
|
|
$domainConfigForm = new DefaultAuthenticationDomainConfigForm();
|
|
$this->addSubForm($appConfigForm->create($formData));
|
|
$this->addSubForm($loggingConfigForm->create($formData));
|
|
$this->addSubForm($themingConfigForm->create($formData));
|
|
$this->addSubForm($domainConfigForm->create($formData));
|
|
}
|
|
}
|