bbcode_merger
class bbcode_merger
Properties
protected Configurator | $configurator |
Methods
Merge two BBCode definitions
Create a custom BBCode for inspection
Indent given template for readability
Test whether the two definitions form a "content"-style BBCode
Test whether the two definitions form BBCode with an optional attribute
Merge the two BBCode definitions of a "content"-style BBCode
Merge the two BBCode definitions of a BBCode with an optional argument
Normalize a template
Details
at line 30
__construct(factory $factory)
No description
at line 47
array
merge_bbcodes(array $without, array $with)
Merge two BBCode definitions
All of the arrays contain a "usage" element and a "template" element
at line 73
protected array
create_bbcode(array $definition)
Create a custom BBCode for inspection
at line 92
protected string
indent_template(string $template)
Indent given template for readability
at line 117
protected bool
is_content_bbcode(array $without, array $with)
Test whether the two definitions form a "content"-style BBCode
Such BBCodes include the [url] BBCode, which uses its text content as attribute if none is provided
at line 132
protected bool
is_optional_bbcode(array $without, array $with)
Test whether the two definitions form BBCode with an optional attribute
at line 148
protected array
merge_content_bbcode(array $without, array $with)
Merge the two BBCode definitions of a "content"-style BBCode
at line 169
protected array
merge_optional_bbcode(array $without, array $with)
Merge the two BBCode definitions of a BBCode with an optional argument
Such BBCodes include the [quote] BBCode, which takes an optional argument but otherwise does not behave differently
at line 186
protected string
normalize_template(string $template)
Normalize a template