2014-09-29 06:29:13 -04:00
|
|
|
<?php
|
2015-02-04 04:46:36 -05:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-09-29 06:29:13 -04:00
|
|
|
|
2014-11-14 05:01:16 -05:00
|
|
|
namespace Icinga\Module\Setup\Forms;
|
2014-09-29 06:29:13 -04:00
|
|
|
|
|
|
|
|
use Icinga\Web\Form;
|
2014-11-14 04:57:14 -05:00
|
|
|
use Icinga\Forms\Config\General\LoggingConfigForm;
|
2014-09-29 06:29:13 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Wizard page to define the application and logging configuration
|
|
|
|
|
*/
|
|
|
|
|
class GeneralConfigPage extends Form
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Initialize this page
|
|
|
|
|
*/
|
|
|
|
|
public function init()
|
|
|
|
|
{
|
2014-10-06 07:52:32 -04:00
|
|
|
$this->setName('setup_general_config');
|
2015-03-02 12:36:04 -05:00
|
|
|
$this->setTitle($this->translate('Application Configuration', 'setup.page.title'));
|
|
|
|
|
$this->addDescription($this->translate(
|
|
|
|
|
'Now please adjust all application and logging related configuration options to fit your needs.'
|
|
|
|
|
));
|
2014-09-29 06:29:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see Form::createElements()
|
|
|
|
|
*/
|
|
|
|
|
public function createElements(array $formData)
|
|
|
|
|
{
|
|
|
|
|
$loggingForm = new LoggingConfigForm();
|
|
|
|
|
$this->addElements($loggingForm->createElements($formData)->getElements());
|
|
|
|
|
}
|
|
|
|
|
}
|