content
Packages
Interfaces
Classes
Files

Class: TinyMCEParser

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

Class Overview

Parser
   |
   --ContentParser
      |
      --TinyMCEParser
This class enables to use TinyMCE without breaking the compatibility with the BBCode formatting. PHPBoost has a reference syntax, it in HTML with specific CSS classes. The HTML code generated by TinyMCE must be modified to conform itself to this specific syntax. This class makes the translation from the TinyMCE HTML to the PHPBoost HTML.

Author(s):

  • Benoit Sautel


Class Details

This class enables to use TinyMCE without breaking the compatibility with the BBCode formatting. PHPBoost has a reference syntax, it in HTML with specific CSS classes. The HTML code generated by TinyMCE must be modified to conform itself to this specific syntax. This class makes the translation from the TinyMCE HTML to the PHPBoost HTML.

Tags:

  • author: Benoit Sautel
  • see: The TinyMCEUnparser class which makes the reverse operation.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor TinyMCEParser [line 45]

TinyMCEParser TinyMCEParser( )
Builds this kind of parser
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method parse [line 54]

void parse( )
Parses the content of the parser. Translates the whole content from the TinyMCE syntax to the PHPBoost one.
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:42 +0200 by phpDocumentor 1.4.1