icingaweb2/application/forms/Setup/SummaryPage.php
Johannes Meyer f29705fc59 Add summary page
refs #7163
2014-10-02 17:11:00 +02:00

53 lines
896 B
PHP

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Form\Setup;
use Icinga\Web\Form;
/**
* Wizard page that displays a summary of what is going to be "done"
*/
class SummaryPage extends Form
{
/**
* The summary to show
*
* @var array
*/
protected $summary;
/**
* Initialize this page
*/
public function init()
{
$this->setName('setup_summary');
$this->setViewScript('form/setup-summary.phtml');
}
/**
* Set the summary to show
*
* @param array $summary
*
* @return self
*/
public function setSummary(array $summary)
{
$this->summary = $summary;
return $this;
}
/**
* Return the summary to show
*
* @return array
*/
public function getSummary()
{
return $this->summary;
}
}