parser_interface
interface parser_interface
Methods
Parse given text
Disable a specific BBCode
Disable BBCodes in general
Disable the censor
Disable magic URLs
Disable smilies
Enable a specific BBCode
Enable BBCodes in general
Enable the censor
Enable magic URLs
Enable smilies
Get the list of errors that were generated during last parsing
Set a variable to be used by the parser
Set multiple variables to be used by the parser
Details
at line 24
string
parse(string $text)
Parse given text
at line 32
null
disable_bbcode(string $name)
Disable a specific BBCode
at line 37
disable_bbcodes()
Disable BBCodes in general
at line 42
disable_censor()
Disable the censor
at line 47
disable_magic_url()
Disable magic URLs
at line 52
disable_smilies()
Disable smilies
at line 60
null
enable_bbcode(string $name)
Enable a specific BBCode
at line 65
enable_bbcodes()
Enable BBCodes in general
at line 70
enable_censor()
Enable the censor
at line 75
enable_magic_url()
Enable magic URLs
at line 80
enable_smilies()
Enable smilies
at line 88
array[]
get_errors()
Get the list of errors that were generated during last parsing
at line 101
null
set_var(string $name, mixed $value)
Set a variable to be used by the parser
- max_font_size
- max_smilies
- max_urls
at line 109
null
set_vars(array $vars)
Set multiple variables to be used by the parser