class acp_utils implements acp_utils_interface

Properties

protected factory $factory

Methods

__construct(factory $factory)

No description

array
analyse_bbcode(string $definition, string $template)

Analyse given BBCode definition for issues and safeness

Details

at line 29
__construct(factory $factory)

No description

Parameters

factory $factory

at line 37
array analyse_bbcode(string $definition, string $template)

Analyse given BBCode definition for issues and safeness

Required elements in the return array:

  • status: see BBCODESTATUS* constants

Optional elements in the return array:

  • name: Name of the BBCode based on the definition. Required if status is "safe".
  • errortext: Textual description of the issue in plain text or as a L* string.
  • error_html: Visual description of the issue in HTML.

Parameters

string $definition

BBCode definition, e.g. [b]{TEXT}[/b]

string $template

BBCode template, e.g. {TEXT}

Return Value

array