Class

CommentsConfig

Package: PHPBoost\Config Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2018 01 22 Since: PHPBoost 3.0 - 2010 07 08 Contributor: Kevin MASSY reidlos@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: phpboost/config/CommentsConfig.class.php
AbstractConfigData implements ConfigData
Extended by CommentsConfig
Methods summary
public
public
# set_comments_enabled( $enabled )
public
public
public
public
public
# set_authorizations( array $array )
public
public
public
public
# set_forbidden_tags( array $forbidden_tags )
public
public
public
public
# set_approbation_comments( $approbation )
public string[mixed]
# get_default_values( )

Returns a map associating to each property name the corresponding default value

public static CommentsConfig
# load( )

Returns the configuration.

public static
# save( )

Saves the configuration in the database. Has it become persistent.

Constants summary
string COMMENTS_ENABLED
# 'comments'
string COMMENTS_UNAUTHORIZED_MODULE
# 'comments_unauthorized_modules'
string AUTHORIZATIONS
# 'authorizations'
string NUMBER_COMMENTS_DISPLAY
# 'number_comments_per_page'
string FORBIDDEN_TAGS
# 'forbidden_tags'
string ORDER_DISPLAY_COMMENTS
# 'order_display_comments'
string ASC_ORDER
# 'ASC'
string DESC_ORDER
# 'DESC'