|
Extensible BBCode
8.x-3.x-dev
|
Public Member Functions | |
| __construct (array $regex_set=NULL) | |
| append (Element $tag, $offset) | |
| advance ($text, $offset) | |
| breakTag (Element $tag) | |
| attr ($name=NULL) | |
| content () | |
| option () | |
| source () | |
| outerSource () | |
A node in the tag tree.
Definition at line 13 of file Element.php.
| __construct | ( | array | $regex_set = NULL | ) |
Construct an element out of a regex match.
| array | $regex_set | The data returned from preg_match() for a single match, including string offsets. |
Definition at line 21 of file Element.php.
References Element\content(), and Element\option().
| advance | ( | $text, | |
| $offset | |||
| ) |
Append ordinary text to the content.
| string | $text | The complete source text. |
| int | $offset | The character position of the end of the substring to append. |
Definition at line 77 of file Element.php.
References Element\content().
| append | ( | Element | $tag, |
| $offset | |||
| ) |
Append a completed element to the content.
| Element | $tag | The element to be appended. |
| int | $offset | The character position of the end of the element. |
Definition at line 64 of file Element.php.
References Element\content().
| attr | ( | $name = NULL | ) |
{Retrieve a particular attribute of the element.[tag NAME=VALUE]...[/tag]
| string | $name | The name of the attribute, or NULL. |
Implements ElementInterface.
Definition at line 100 of file Element.php.
| breakTag | ( | Element | $tag | ) |
Append a broken element to the content.
This will attach that element's dangling opening tag, as well as its content.
| Element | $tag | The broken element to append. |
Definition at line 91 of file Element.php.
References Element\content().
| content | ( | ) |
{Retrieve the content of the tag.[tag]CONTENT[/tag]All BBCode inside this content will already be rendered.
Implements ElementInterface.
Definition at line 107 of file Element.php.
Referenced by RootElement\__construct(), Element\__construct(), Element\advance(), Element\append(), and Element\breakTag().
| option | ( | ) |
{Retrieve the option-type attribute of the element.[tag=OPTION]...[/tag]
Implements ElementInterface.
Definition at line 114 of file Element.php.
Referenced by Element\__construct().
| outerSource | ( | ) |
{Retrieve the complete source, including the opening and closing tags.
Implements ElementInterface.
Definition at line 128 of file Element.php.
References Element\source().
| source | ( | ) |
{Retrieve the content source of the tag.[tag]CONTENT[/tag]This is the content of the tag before rendering.
Implements ElementInterface.
Definition at line 121 of file Element.php.
Referenced by Element\outerSource().