Classes

File content/formatting/extension-point/ContentFormattingExtensionPoint.class.php

File content/formatting/extension-point/ContentFormattingExtensionPoint.class.php

 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 
<?php
/**
 * @package     Content
 * @subpackage  Formatting\extension-point
 * @copyright   &copy; 2005-2019 PHPBoost
 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0
 * @author      Kevin MASSY <reidlos@phpboost.com>
 * @version     PHPBoost 5.2 - last update: 2014 12 22
 * @since       PHPBoost 3.0 - 2011 10 11
*/

interface ContentFormattingExtensionPoint extends ExtensionPoint
{
    const EXTENSION_POINT = 'content_formatting';

    function get_name();

    /**
     * Returns a parser which will work in the language you chose.
     * @return FormattingParser The parser to use to parse you formatting
     */
    function get_parser();

    /**
     * Returns a unparser which will work in the language you chose.
     * @return FormattingParser The unparser to use to unparse you formatting
     */
    function get_unparser();

    /**
     * Returns a second parser which will work in the language you chose.
     * @return FormattingParser The second parser to use just before displaying you formatted text
     */
    function get_second_parser();

    /**
     * Returns an editor object which will display the editor corresponding to the language you chose.
     * @return ContentEditor The editor to use.
     */
    function get_editor();

    /**
     * Sets the forbidden tags.
     * @param string[] $tags The list of the forbidden tags (each tag is represented by its string identifier)
     */
    function set_forbidden_tags(array $tags);

    /**
     * Returns the list of the forbidden tags
     * @return string[] The list of the forbidden tags (each tag is represented by its string identifier)
     */
    public function get_forbidden_tags();

    /**
     * Adds a forbidden tag
     * @param string $tag The tag name
     */
    function add_forbidden_tag($tag);

    function add_forbidden_tags(array $tags);

    function set_html_auth(array $array_auth);

    function get_html_auth();
}
?>