Add GeneralConfig page

refs #7163
This commit is contained in:
Johannes Meyer 2014-09-29 12:29:13 +02:00
parent 5afda8a13e
commit b6b7814e8b
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?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());
}
}