Class

ContentFormattingService

Package: Content\Formatting Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2018 11 30 Since: PHPBoost 3.0 - 2009 12 20 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: content/formatting/ContentFormattingService.class.php

This class contains the default content formatting factory that must be used if you want a formatting factory having the default settings.

Methods summary
public ContentFormattingFactory
# get_default_factory( )

Returns the content formatting factory corresponding to the default configuration

public ContentFormattingFactory
# create_factory( string $language = '' )

Creates a factory for the given language

public string
# get_user_editor( )

Returns the name of the editor of the current user (chosen in its profile).

public FormattingParser
# get_default_parser( )

Returns the parser to use in the default configuration

public FormattingParser
# get_default_unparser( )

Returns the unparser to use in the default configuration

public FormattingParser
# get_default_second_parser( )

Returns the second parser to use in the default configuration

public ContentEditor
# get_default_editor( )

Returns the editor displayer that you have to display beside the associated HTML textarea if you use the default configuration.

public
public
public
# uninstall_editor( string $id_module )
public string[]
# get_available_tags( )

Returns the map of all the formatting types supported by the PHPBoost formatting editors and parsers. The keys of the map are the tags identifiers and the values the tags names.