content
Packages
Interfaces
Classes
Files

Class: ContentSecondParser

Source Location: /content/parser/content_second_parser.class.php [line 40]

Class Overview

Parser
   |
   --ContentSecondParser
This class ensures the real time processing of the content. The major part of the processing is saved in the database to minimize as much as possible the treatment when the content is displayed. However, some tags cannot be cached, because we cannot have return to the original code. It's for instance the case of the code tag which replaces the code by a lot of html code which formats the code. This kind of tag is treated in real time by this class. The content you put in that parser must come from a ContentParser class (BBCodeParser or TinyMCEParser) (it can have been saved in a database between the first parsing and the real time parsing).

Author(s):



Class Details

This class ensures the real time processing of the content. The major part of the processing is saved in the database to minimize as much as possible the treatment when the content is displayed. However, some tags cannot be cached, because we cannot have return to the original code. It's for instance the case of the code tag which replaces the code by a lot of html code which formats the code. This kind of tag is treated in real time by this class. The content you put in that parser must come from a ContentParser class (BBCodeParser or TinyMCEParser) (it can have been saved in a database between the first parsing and the real time parsing).

Tags:

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


Class Methods

constructor ContentSecondParser [line 46]

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

method export_html_text [line 86]

string export_html_text( $html_content, string $html)
Transforms a PHPBoost HTML content to make it exportable and usable every where in the web.

Tags:

  • return: The exportable content

Parameters:

string   $html   Content to transform
   $html_content  
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method parse [line 54]

void parse( )
Parses the content of the parser. The result will be ready to be displayed.
[ 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:35 +0200 by phpDocumentor 1.4.1