1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11768] Added methods to access the library's parser/renderer

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-02-23 19:03:41 +01:00
parent 414dcae422
commit c1ba3a678d
4 changed files with 35 additions and 0 deletions

View File

@@ -191,6 +191,16 @@ class parser extends \phpbb\textformatter\parser
return array_unique($errors);
}
/**
* Return the instance of s9e\TextFormatter\Parser used by this object
*
* @return s9e\TextFormatter\Parser
*/
public function get_parser()
{
return $this->parser;
}
/**
* {@inheritdoc}
*/

View File

@@ -121,6 +121,16 @@ class renderer extends \phpbb\textformatter\renderer
$this->renderer->setParameter('STYLE_ID', $user->style['style_id']);
}
/**
* Return the instance of s9e\TextFormatter\Renderer used by this object
*
* @return s9e\TextFormatter\Renderer
*/
public function get_renderer()
{
return $this->renderer;
}
/**
* {@inheritdoc}
*/