Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \CommentsConfig
This is a default and minimal implementation of the ConfigData interface.
This is a default and minimal implementation of the ConfigData interface.
__construct()
Constructs a AbstractConfigData object
None found |
synchronize()
This method is not used in the configuration context.
{@inheritdoc}
None found |
set_default_values()
Redefine this method if you want to avoid getting errors while asking values.
If some entries doesn't exist, they can be created here.
None found |
get_property(string $name) : string
Reads a property's value.
string | $name | Name of the property to read |
the read value
None found |
set_property(string $name, string $value)
Sets a property value. If the property exists, it overrides its value, otherwise, it creates an entry for this property.
string | $name | Name of the property |
string | $value | Value of the property |
None found |
get_default_values() : \string[mixed]
Returns a map associating to each property name the corresponding default value
None found |
are_comments_enabled()
None found |
set_comments_enabled( $enabled)
$enabled |
None found |
get_comments_unauthorized_modules()
None found |
set_comments_unauthorized_modules(array $modules)
array | $modules |
None found |
module_comments_is_enabled( $module_id)
$module_id |
None found |
get_authorizations()
None found |
set_authorizations(array $array)
array | $array |
None found |
get_number_comments_display()
None found |
set_number_comments_display( $number)
$number |
None found |
get_forbidden_tags()
None found |
set_forbidden_tags(array $forbidden_tags)
array | $forbidden_tags |
None found |
get_max_links_comment()
None found |
set_max_links_comment( $number)
$number |
None found |
get_order_display_comments()
None found |
set_order_display_comments( $order)
$order |
None found |
get_approbation_comments()
None found |
set_approbation_comments( $approbation)
$approbation |
None found |
load() : \CommentsConfig
Returns the configuration.
None found |
save()
Saves the configuration in the database. Has it become persistent.
None found |
get_default_value( $property)
$property |
None found |
$properties_map :
None found |
COMMENTS_ENABLED = 'comments'
None found |
COMMENTS_UNAUTHORIZED_MODULE = 'comments_unauthorized_modules'
None found |
AUTHORIZATIONS = 'authorizations'
None found |
NUMBER_COMMENTS_DISPLAY = 'number_comments_per_page'
None found |
FORBIDDEN_TAGS = 'forbidden_tags'
None found |
MAX_LINKS_COMMENT = 'max_links_comment'
None found |
ORDER_DISPLAY_COMMENTS = 'order_display_comments'
None found |
ASC_ORDER = 'ASC'
None found |
DESC_ORDER = 'DESC'
None found |