[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/textformatter/s9e/ -> bbcode_merger.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 199 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

bbcode_merger:: (9 methods):
  __construct()
  merge_bbcodes()
  create_bbcode()
  indent_template()
  is_content_bbcode()
  is_optional_bbcode()
  merge_content_bbcode()
  merge_optional_bbcode()
  normalize_template()


Class: bbcode_merger  - X-Ref

__construct(factory $factory)   X-Ref

param: factory $factory

merge_bbcodes(array $without, array $with)   X-Ref
Merge two BBCode definitions

All of the arrays contain a "usage" element and a "template" element

param: array $without BBCode definition without an attribute
param: array $with    BBCode definition with an attribute
return: array          Merged definition

create_bbcode(array $definition)   X-Ref
Create a custom BBCode for inspection

param: array $definition Original BBCode definition
return: array             Updated definition containing a BBCode object and a Tag

indent_template($template)   X-Ref
Indent given template for readability

param: string $template
return: string

is_content_bbcode(array $without, array $with)   X-Ref
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

param: array $without BBCode definition without an attribute
param: array $with    BBCode definition with an attribute
return: bool

is_optional_bbcode(array $without, array $with)   X-Ref
Test whether the two definitions form BBCode with an optional attribute

param: array $without BBCode definition without an attribute
param: array $with    BBCode definition with an attribute
return: bool

merge_content_bbcode(array $without, array $with)   X-Ref
Merge the two BBCode definitions of a "content"-style BBCode

param: array $without BBCode definition without an attribute
param: array $with    BBCode definition with an attribute
return: array          Merged definition

merge_optional_bbcode(array $without, array $with)   X-Ref
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

param: array $without BBCode definition without an attribute
param: array $with    BBCode definition with an attribute
return: array          Merged definition

normalize_template($template)   X-Ref
Normalize a template

param: string $template
return: string



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1