Summary
- abstract
- File
- Package hierarchy Formatting\parser
- Class hierarchy \AbstractParser \ContentFormattingUnparser
This class is an abstract class. It contains the common elements needed by all the unparsers of PHPBoost.
This class is an abstract class. It contains the common elements needed by all the unparsers of PHPBoost.
__construct()
Builds a ContentFormattingUnparser class.
| None found |
get_content() : string
Returns the content of the parser. If you called a method which parses the content, this content will be parsed.
The content of the parser.
| None found |
set_content(string $content)
Sets the content of the parser. When you will call a parse method, it will deal with this content.
| string | $content | Content |
| None found |
set_path_to_root(string $path)
Sets the reference path for relative URL
| string | $path | Path |
| None found |
get_path_to_root() : string
Returns the path to root attribute.
The path
| None found |
set_page_path(string $page_path)
Sets the page path
| string | $page_path | Page path |
| None found |
get_page_path() : string
Returns the page path
path
| None found |
add_module_special_tag( $pattern, $replacement)
{@inheritdoc}
| $pattern | ||
| $replacement |
| None found |
get_module_special_tags()
{@inheritdoc}
| None found |
_parse_imbricated(string $match, string $regex, string $replace)
Parses a nested tag
| string | $match | The regular expression which matches the tag to replace |
| string | $regex | The regular expression which matches the replacement |
| string | $replace | The replacement syntax. |
| None found |
parse_tag_args(string $matches, string $allowed_args = array())
Parses tag args to get allowed ones
| string | $matches | The regular expression which matches the tag args |
| string | $allowed_args | The args that are allowed to be present |
| None found |
unparse_html(boolean $action)
Unparses the html code. In a first time, it pick the html tags up, and then, when you have done all the processings you wanted, you reimplant it.
| boolean | $action | self::PICK_UP if you want to pick up the html tag and self::REIMPLANT to reimplant it. |
| None found |
unparse_code(boolean $action)
Unparses the code tag. In a first time, you pick it up and you reimplant it.
| boolean | $action | self::PICK_UP to pick the code tag up, self::REIMPLANT to reinsert them. |
| None found |
unparse_module_special_tags()
| desc |
Unparsed module special tags if any. The special tags are [link] for module pages or wiki for example. |
unparse_fa_tag(array<mixed,string> $matches) : string
| array<mixed,string> | $matches | Content matched by a regular expression |
The string in which the fa tag are parsed
| desc |
Callback which allows to unparse the font awasome icons tag |
unparse_wikipedia_tag(array<mixed,string> $matches) : string
| array<mixed,string> | $matches | Content matched by a regular expression |
The string in which the wikipedia tag are parsed
| desc |
Callback which allows to unparse the Wikipedia tag |
$content : string
| None found |
$array_tags : array<mixed,string>
| None found |
$path_to_root : string
| None found |
$page_path : string
| None found |
$module_special_tags : array<mixed,string>
| None found |
PICK_UP = true
| None found |
REIMPLANT = false
| None found |