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