2014-05-28 13:33:07 +02:00
|
|
|
<?php
|
2015-02-03 16:27:59 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | http://www.gnu.org/licenses/gpl-2.0.txt */
|
2014-05-28 13:33:07 +02:00
|
|
|
|
|
|
|
use \Zend_Controller_Router_Route;
|
|
|
|
use Icinga\Application\Icinga;
|
|
|
|
|
|
|
|
if (Icinga::app()->isCli()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$docModuleChapter = new Zend_Controller_Router_Route(
|
2014-08-19 09:45:53 +02:00
|
|
|
'doc/module/:moduleName/chapter/:chapterId',
|
2014-05-28 13:33:07 +02:00
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'chapter',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 13:34:39 +02:00
|
|
|
$docIcingaWebChapter = new Zend_Controller_Router_Route(
|
2014-08-19 09:45:53 +02:00
|
|
|
'doc/icingaweb/chapter/:chapterId',
|
2014-05-28 13:34:39 +02:00
|
|
|
array(
|
|
|
|
'controller' => 'icingaweb',
|
|
|
|
'action' => 'chapter',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 17:19:48 +02:00
|
|
|
$docModuleToc = new Zend_Controller_Router_Route(
|
|
|
|
'doc/module/:moduleName/toc',
|
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'toc',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-07-28 19:15:44 +02:00
|
|
|
$docModulePdf = new Zend_Controller_Router_Route(
|
|
|
|
'doc/module/:moduleName/pdf',
|
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'pdf',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 13:33:07 +02:00
|
|
|
$this->addRoute('doc/module/chapter', $docModuleChapter);
|
2014-05-28 13:34:39 +02:00
|
|
|
$this->addRoute('doc/icingaweb/chapter', $docIcingaWebChapter);
|
2014-05-28 17:19:48 +02:00
|
|
|
$this->addRoute('doc/module/toc', $docModuleToc);
|
2014-07-28 19:15:44 +02:00
|
|
|
$this->addRoute('doc/module/pdf', $docModulePdf);
|