Class

AbstractParser

Abstract Package: Content\Formatting\parser Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 28 Since: PHPBoost 2.0 - 2007 11 29 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Benoit SAUTEL ben.popeye@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: content/formatting/parser/AbstractParser.class.php

This class is the basis of all the formatting processings that exist in PHPBoost.

AbstractParser implements FormattingParser
Methods summary
public
# __construct( )

Builds a Parser object.

public string
# get_content( )

Returns the content of the parser. If you called a method which parses the content, this content will be parsed.

public
# set_content( string $content )

Sets the content of the parser. When you will call a parse method, it will deal with this 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( $pattern, $replacement )
public
protected
# _parse_imbricated( string $match, string $regex, string $replace )

Parses a nested tag

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

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

# array()
protected string $path_to_root

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

# PATH_TO_ROOT
protected string $page_path

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

# ''
protected string[] $module_special_tags

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

# array()
Annonces