Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #7163
- Loading branch information
Johannes Meyer
committed
Sep 29, 2014
1 parent
5afda8a
commit b6b7814
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} | ||
} |