Class

ContentSecondParser

Package: Content\Formatting\parser Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2018 12 06 Since: PHPBoost 2.0 - 2008 08 10 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Contributor: mipel mipel@phpboost.com Contributor: janus57 janus57@janus57.fr Contributor: Sebastien LARTIGUE babsolune@phpboost.com Contributor: xela xela@phpboost.com Located at: content/formatting/parser/ContentSecondParser.class.php

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 ContentFormattingParser class (BBCodeParser or TinyMCEParser) (it can have been saved in a database between the first parsing and the real time parsing).

AbstractParser implements FormattingParser
Extended by ContentSecondParser
Methods summary
public
# __construct( )

Builds a ContentSecondParser object

public
# parse( )

Parses the content of the parser. The result will be ready to be displayed.

public static string
# export_html_text( string $html_content )

Transforms a PHPBoost HTML content to make it exportable and usable every where in the web.

Constants summary
integer MAX_CODE_LENGTH

Maximal number of characters that can be inserted in the [code] tag. After that, GeSHi has many difficulties to highligth and has the PHP execution stop (error 500).

# 40000
Constants inherited from AbstractParser
PICK_UP, REIMPLANT
Annonces