interface parser_interface

Methods

string
parse(string $text)

Parse given text

null
disable_bbcode(string $name)

Disable a specific BBCode

disable_bbcodes()

Disable BBCodes in general

disable_censor()

Disable the censor

disable_magic_url()

Disable magic URLs

disable_smilies()

Disable smilies

null
enable_bbcode(string $name)

Enable a specific BBCode

enable_bbcodes()

Enable BBCodes in general

enable_censor()

Enable the censor

enable_magic_url()

Enable magic URLs

enable_smilies()

Enable smilies

array[]
get_errors()

Get the list of errors that were generated during last parsing

null
set_var(string $name, mixed $value)

Set a variable to be used by the parser

null
set_vars(array $vars)

Set multiple variables to be used by the parser

Details

at line 24
string parse(string $text)

Parse given text

Parameters

string $text

Return Value

string

at line 32
null disable_bbcode(string $name)

Disable a specific BBCode

Parameters

string $name

BBCode name

Return Value

null

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

Parameters

string $name

BBCode name

Return Value

null

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

Return Value

array[]

Array of arrays. Each array contains a lang string at index 0 plus any number of optional parameters

at line 103
null set_var(string $name, mixed $value)

Set a variable to be used by the parser

  • max_font_size
  • max_img_height
  • max_img_width
  • max_smilies
  • max_urls

Parameters

string $name
mixed $value

Return Value

null

at line 111
null set_vars(array $vars)

Set multiple variables to be used by the parser

Parameters

array $vars

Associative array of [name => value]

Return Value

null