content
Packages
Interfaces
Classes
Files

Class: BBCodeParser

Source Location: /content/parser/bbcode_parser.class.php [line 38]

Class Overview

Parser
   |
   --ContentParser
      |
      --BBCodeParser
Converts the PHPBoost BBCode language to the XHTML language which is stocked in the database and can be displayed nearly directly. It parses only the authorized tags (defined in the parent class which is ContentParser).

Author(s):



Class Details

Converts the PHPBoost BBCode language to the XHTML language which is stocked in the database and can be displayed nearly directly. It parses only the authorized tags (defined in the parent class which is ContentParser).

Tags:

[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor BBCodeParser [line 43]

BBCodeParser BBCodeParser( )
Builds a BBCodeParser object
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method clear_html_br [line 484]

string clear_html_br( string[] $matches)
Callback which clears the new line tag in the HTML generated code

Tags:

  • return: The string in which the new line tag are cleared

Parameters:

string[]   $matches   Content matched by a regular expression
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method parse [line 52]

void parse( )
Parses the parser content from BBCode to XHTML.

Tags:

  • return: You will find the result by using the get_content method
Overrides ContentParser::parse() (Parses the content of the parser)
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Inherited Methods

Class: ContentParser

ContentParser::ContentParser()
Buils a ContentParser object.
ContentParser::get_forbidden_tags()
Gets the forbidden tags.
ContentParser::parse()
Parses the content of the parser
ContentParser::set_forbidden_tags()
Sets the tags which mustn't be parsed.
ContentParser::set_html_auth()
Sets the required authorizations that are necessary to post some HTML code which will be displayed by the web browser.

Class: Parser

Parser::Parser()
Builds a Parser object.
Parser::get_content()
Returns the content of the parser. If you called a method which parses the content, this content will be parsed.
Parser::get_page_path()
Returns the page path
Parser::get_path_to_root()
Returns the path to root attribute.
Parser::set_content()
Sets the content of the parser. When you will call a parse method, it will deal with this content.
Parser::set_page_path()
Sets the page path
Parser::set_path_to_root()
Sets the reference path for relative URL


Documentation generated on Tue, 28 Jul 2009 22:43:34 +0200 by phpDocumentor 1.4.1