parent
3aff91d204
commit
924e67f2aa
|
@ -11,7 +11,7 @@ use Icinga\Web\View;
|
||||||
/**
|
/**
|
||||||
* Base class for toc and section renderer
|
* Base class for toc and section renderer
|
||||||
*/
|
*/
|
||||||
abstract class Renderer extends RecursiveIteratorIterator
|
abstract class DocRenderer extends RecursiveIteratorIterator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* URL to replace links with
|
* URL to replace links with
|
|
@ -20,7 +20,7 @@ use Icinga\Web\View;
|
||||||
/**
|
/**
|
||||||
* Section renderer
|
* Section renderer
|
||||||
*/
|
*/
|
||||||
class DocSectionRenderer extends Renderer
|
class DocSectionRenderer extends DocRenderer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Content to render
|
* Content to render
|
||||||
|
@ -245,7 +245,7 @@ class DocSectionRenderer extends Renderer
|
||||||
}
|
}
|
||||||
$this->content[] = sprintf(
|
$this->content[] = sprintf(
|
||||||
'<a name="%1$s"></a><h%2$d>%3$s</h%2$d>',
|
'<a name="%1$s"></a><h%2$d>%3$s</h%2$d>',
|
||||||
Renderer::encodeAnchor($section->getId()),
|
static::encodeAnchor($section->getId()),
|
||||||
$section->getLevel(),
|
$section->getLevel(),
|
||||||
$title
|
$title
|
||||||
);
|
);
|
||||||
|
|
|
@ -14,7 +14,7 @@ use RecursiveIteratorIterator;
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
class DocTocRenderer extends Renderer
|
class DocTocRenderer extends DocRenderer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Content to render
|
* Content to render
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
namespace Icinga\Module\Doc\Search;
|
namespace Icinga\Module\Doc\Search;
|
||||||
|
|
||||||
use RecursiveIteratorIterator;
|
use RecursiveIteratorIterator;
|
||||||
use Icinga\Module\Doc\Renderer;
|
use Icinga\Module\Doc\DocRenderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renderer for doc searches
|
* Renderer for doc searches
|
||||||
|
@ -13,7 +13,7 @@ use Icinga\Module\Doc\Renderer;
|
||||||
* @{inheritdoc}
|
* @{inheritdoc}
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
class DocSearchRenderer extends Renderer
|
class DocSearchRenderer extends DocRenderer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The content to render
|
* The content to render
|
||||||
|
|
Loading…
Reference in New Issue