mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-20 16:37:42 +02:00
36 lines
870 B
PHP
36 lines
870 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Form\Setup;
|
|
|
|
use Icinga\Web\Form;
|
|
use Icinga\Form\Config\General\LoggingConfigForm;
|
|
use Icinga\Form\Config\General\ApplicationConfigForm;
|
|
|
|
/**
|
|
* Wizard page to define the application and logging configuration
|
|
*/
|
|
class GeneralConfigPage extends Form
|
|
{
|
|
/**
|
|
* Initialize this page
|
|
*/
|
|
public function init()
|
|
{
|
|
$this->setName('setup_application_config');
|
|
}
|
|
|
|
/**
|
|
* @see Form::createElements()
|
|
*/
|
|
public function createElements(array $formData)
|
|
{
|
|
$appForm = new ApplicationConfigForm();
|
|
$this->addElement($appForm->createElements($formData)->getElement('global_modulePath'));
|
|
|
|
$loggingForm = new LoggingConfigForm();
|
|
$this->addElements($loggingForm->createElements($formData)->getElements());
|
|
}
|
|
}
|