Class

AbstractParser

Abstract Package: content Author: Benoît Sautel <ben.popeye@phpboost.com> Desc: This class is the basis of all the formatting processings that exist in PHPBoost. Located at content/formatting/parser/AbstractParser.class.php
AbstractParser implements FormattingParser
Methods summary
public
# __construct( )
public string
# get_content( )
public
# set_content( string $content )
public
# set_path_to_root( string $path )

Sets the reference path for relative URL

public string
# get_path_to_root( )

Returns the path to root attribute.

public
# set_page_path( string $page_path )

Sets the page path

public string
# get_page_path( )

Returns the page path

public
# add_module_special_tag( mixed $pattern, mixed $replacement )
public
protected
# _parse_imbricated( string $match, string $regex, string $replace )
Methods inherited from FormattingParser
parse()
Constants summary
boolean PICK_UP true
#
boolean REIMPLANT false
#
Properties summary
protected string $content ''
#

Content of the parser

protected string[] $array_tags array()
#

List of the tags which have been picked up by the parser

protected string $path_to_root PATH_TO_ROOT
#

Path to root of the page in which has been written the content to parse.

protected string $page_path ''
#

Path of the page in which has been written the content to parse.

protected string[] $module_special_tags array()
#

List of the tags to add from a module. Allows to add a tag [link] from pages or wiki from example