content
Packages
Interfaces
Classes
Files

Class: BBCodeHighlighter

Source Location: /content/parser/bbcode_highlighter.class.php [line 51]

Class Overview

Parser
   |
   --BBCodeHighlighter
This class is a highlighter for the PHPBoost BBCode language. It supplies the highlighted code written in XHTML.

Author(s):



Class Details

This class is a highlighter for the PHPBoost BBCode language. It supplies the highlighted code written in XHTML.

Tags:

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


Class Methods

constructor BBCodeHighlighter [line 57]

BBCodeHighlighter BBCodeHighlighter( )
Builds a BBCodeHighlighter objet
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method parse [line 69]

void parse( [bool $inline_code = BBCODE_HIGHLIGHTER_BLOCK_CODE])
Highlights the content of the parser.

Tags:

  • return: You can get the result by calling the get_content method

Parameters:

bool   $inline_code   If you want that the code make a new HTML paragraph, use BBCODE_HIGHLIGHTER_BLOCK_CODE (default parameter) and if you want that it would be integrated in a line, use BBCODE_HIGHLIGHTER_INLINE_CODE
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Inherited Methods

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