renderer
class renderer implements renderer_interface
s9e\TextFormatter\Renderer adapter
Properties
protected Helper | $censor | ||
protected dispatcher_interface | $dispatcher | ||
protected quote_helper | $quote_helper | ||
protected Renderer | $renderer | ||
protected bool | $viewcensors | ||
protected bool | $viewflash | ||
protected bool | $viewimg | ||
protected bool | $viewsmilies |
Methods
Constructor
Configure the quote_helper object used to display extended information in quotes
Automatically set the smilies path based on config
Configure this renderer as per the user's settings
Return the instance of s9e\TextFormatter\Renderer used by this object
Return the value of the "viewcensors" option
Return the value of the "viewflash" option
Return the value of the "viewimg" option
Return the value of the "viewsmilies" option
Render given text
Set the smilies' path
Set the "viewcensors" option
Set the "viewflash" option
Set the "viewimg" option
Set the "viewsmilies" option
Details
at line 70
__construct(driver_interface $cache, string $cache_dir, string $key, factory $factory, dispatcher_interface $dispatcher)
Constructor
at line 125
configure_quote_helper(quote_helper $quote_helper)
Configure the quote_helper object used to display extended information in quotes
at line 137
null
configure_smilies_path(config $config, path_helper $path_helper)
Automatically set the smilies path based on config
at line 157
void
configure_user(user $user, config $config, auth $auth)
Configure this renderer as per the user's settings
Should set the locale as well as the viewcensor/viewflash/viewimg/viewsmilies options.
at line 190
Renderer
get_renderer()
Return the instance of s9e\TextFormatter\Renderer used by this object
at line 198
bool
get_viewcensors()
Return the value of the "viewcensors" option
at line 206
bool
get_viewflash()
Return the value of the "viewflash" option
at line 214
bool
get_viewimg()
Return the value of the "viewimg" option
at line 222
bool
get_viewsmilies()
Return the value of the "viewsmilies" option
at line 230
string
render($xml)
Render given text
at line 273
null
set_smilies_path($path)
Set the smilies' path
at line 281
null
set_viewcensors(bool $value)
Set the "viewcensors" option
at line 290
null
set_viewflash(bool $value)
Set the "viewflash" option
at line 299
null
set_viewimg(bool $value)
Set the "viewimg" option
at line 308
null
set_viewsmilies(bool $value)
Set the "viewsmilies" option