Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \ContentManagementConfig
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 |
is_anti_flood_enabled()
None found |
set_anti_flood_enabled( $enabled)
$enabled |
None found |
get_anti_flood_duration()
None found |
set_anti_flood_duration( $duration)
$duration |
None found |
get_used_captcha_module()
None found |
set_used_captcha_module( $module)
$module |
None found |
is_new_content_enabled()
None found |
set_new_content_enabled( $enabled)
$enabled |
None found |
get_new_content_duration()
None found |
set_new_content_duration( $duration)
$duration |
None found |
get_new_content_unauthorized_modules()
None found |
set_new_content_unauthorized_modules(array $modules)
array | $modules |
None found |
is_notation_enabled()
None found |
set_notation_enabled( $enabled)
$enabled |
None found |
get_notation_scale()
None found |
set_notation_scale( $scale)
$scale |
None found |
get_notation_unauthorized_modules()
None found |
set_notation_unauthorized_modules(array $modules)
array | $modules |
None found |
is_content_sharing_enabled()
None found |
set_content_sharing_enabled( $enabled)
$enabled |
None found |
is_content_sharing_email_enabled()
None found |
set_content_sharing_email_enabled( $enabled)
$enabled |
None found |
is_content_sharing_print_enabled()
None found |
set_content_sharing_print_enabled( $enabled)
$enabled |
None found |
is_content_sharing_sms_enabled()
None found |
set_content_sharing_sms_enabled( $enabled)
$enabled |
None found |
is_opengraph_enabled()
None found |
set_opengraph_enabled( $enabled)
$enabled |
None found |
get_site_default_picture_url()
None found |
set_site_default_picture_url( $url)
$url |
None found |
module_new_content_is_enabled( $module_id)
$module_id |
None found |
module_new_content_is_enabled_and_check_date( $module_id, $date)
$module_id | ||
$date |
None found |
module_notation_is_enabled( $module_id)
$module_id |
None found |
is_id_card_enabled()
None found |
set_id_card_enabled( $enabled)
$enabled |
None found |
get_id_card_unauthorized_modules()
None found |
set_id_card_unauthorized_modules(array $modules)
array | $modules |
None found |
module_id_card_is_enabled( $module_id)
$module_id |
None found |
load() : \ContentManagementConfig
Returns the configuration.
None found |
save()
Saves the configuration in the database. Has it become persistent.
None found |
get_default_values() : \string[mixed]
Returns a map associating to each property name the corresponding default value
None found |
get_default_value( $property)
$property |
None found |
check_date( $date)
$date |
None found |
$properties_map :
None found |
ANTI_FLOOD_ENABLED = 'anti_flood'
None found |
ANTI_FLOOD_DURATION = 'anti_flood_duration'
None found |
USED_CAPTCHA_MODULE = 'used_captcha_module'
None found |
NEW_CONTENT_ENABLED = 'new_content'
None found |
NEW_CONTENT_DURATION = 'new_content_duration'
None found |
NEW_CONTENT_UNAUTHORIZED_MODULES = 'new_content_unauthorized_modules'
None found |
NOTATION_ENABLED = 'new_notation'
None found |
NOTATION_SCALE = 'notation_scale'
None found |
NOTATION_UNAUTHORIZED_MODULES = 'notation_unauthorized_modules'
None found |
CONTENT_SHARING_ENABLED = 'content_sharing_enabled'
None found |
CONTENT_SHARING_EMAIL_ENABLED = 'content_sharing_email_enabled'
None found |
CONTENT_SHARING_PRINT_ENABLED = 'content_sharing_print_enabled'
None found |
CONTENT_SHARING_SMS_ENABLED = 'content_sharing_sms_enabled'
None found |
OPENGRAPH_ENABLED = 'opengraph_enabled'
None found |
SITE_DEFAULT_PICTURE_URL = 'site_default_picture_url'
None found |
ID_CARD_ENABLED = 'id_card'
None found |
ID_CARD_UNAUTHORIZED_MODULES = 'id_card_unauthorized_modules'
None found |