From 709146d49f18e92973189c985862083c0acec0ac Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 14 May 2014 13:20:21 +0200 Subject: [PATCH] Add wizard page for the logging configuration resolves #6129 --- application/forms/Install/LoggingPage.php | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 application/forms/Install/LoggingPage.php diff --git a/application/forms/Install/LoggingPage.php b/application/forms/Install/LoggingPage.php new file mode 100644 index 000000000..6bb4a21ce --- /dev/null +++ b/application/forms/Install/LoggingPage.php @@ -0,0 +1,67 @@ +setName('logging'); + } + + /** + * Create and return the logging form + * + * @return LoggingForm + */ + protected function createForm() + { + if ($this->loggingForm === null) { + $this->loggingForm = new LoggingForm(); + $this->loggingForm->hideButtons(); + $this->loggingForm->setTokenDisabled(); + $this->loggingForm->setRequest($this->getRequest()); + $this->loggingForm->setConfiguration($this->getConfiguration()); + } + + return $this->loggingForm; + } + + /** + * Create this wizard page + */ + protected function create() + { + $loggingForm = $this->createForm(); + $loggingForm->buildForm(); // Needs to get called manually as it's nothing that Zend knows about + $this->addSubForm($loggingForm, $loggingForm->getName()); + } + + /** + * Return a config containing all values provided by the user + * + * @return Zend_Config + */ + public function getConfig() + { + return $this->createForm()->getConfig(); + } +} +// @codeCoverageIgnoreEnd