Move configuration and preference handling to Form base class

Moved setConfiguration, setUserPreferences and getUserPreferences
to our Form base class due to some redundancies.

refs #4581
This commit is contained in:
Johannes Meyer 2013-08-27 14:27:31 +02:00 committed by Jannis Moßhammer
parent 86d721c317
commit 14b56151aa
2 changed files with 5 additions and 1 deletions

View File

@ -156,7 +156,10 @@ class LoggingForm extends Form
'label' => 'Debug Log Path',
'required' => $this->shouldDisplayDebugLog($debug),
'condition' => $this->shouldDisplayDebugLog($debug),
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
'value' => $debug->get(
'target',
$this->getBaseDir() . '/var/log/icinga2.debug.log'
),
'helptext' => 'Set the path to the debug log'
)
);

View File

@ -46,6 +46,7 @@ require_once BaseTestCase::$libDir . '/Util/DateTimeFactory.php';
// @codingStandardsIgnoreEnd
use \DateTimeZone;
use \Zend_Config;
use \Icinga\User\Preferences;
use \Zend_View_Helper_DateFormat;
use \Icinga\Util\DateTimeFactory;