2013-10-16 08:45:23 -04:00
|
|
|
<?php
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
2014-02-03 09:39:53 -05:00
|
|
|
use Icinga\Module\Doc\Controller as DocController;
|
2013-10-16 08:45:23 -04:00
|
|
|
|
2014-03-21 15:05:00 -04:00
|
|
|
use Icinga\Module\Doc\DocParser;
|
|
|
|
|
|
2014-02-03 09:39:53 -05:00
|
|
|
class Doc_IndexController extends DocController
|
2013-10-16 08:45:23 -04:00
|
|
|
{
|
2014-03-21 15:05:00 -04:00
|
|
|
protected $parser;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
|
{
|
|
|
|
|
$module = null;
|
|
|
|
|
$this->parser = new DocParser($module);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function tocAction()
|
|
|
|
|
{
|
|
|
|
|
// Temporary workaround
|
|
|
|
|
list($html, $toc) = $this->parser->getDocumentation();
|
|
|
|
|
$this->view->toc = $toc;
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-24 10:41:37 -05:00
|
|
|
/**
|
|
|
|
|
* Display the application's documentation
|
|
|
|
|
*/
|
2013-10-16 08:45:23 -04:00
|
|
|
public function indexAction()
|
|
|
|
|
{
|
2014-02-11 09:27:42 -05:00
|
|
|
$this->populateView();
|
2013-10-16 08:45:23 -04:00
|
|
|
}
|
|
|
|
|
}
|