Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \MaintenanceConfig
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 |
is_maintenance_enabled()
None found |
set_maintenance_enabled( $enabled)
$enabled |
None found |
enable_maintenance()
None found |
disable_maintenance()
None found |
is_unlimited_maintenance()
None found |
set_unlimited_maintenance( $unlimited)
$unlimited |
None found |
get_end_date() : \Date
None found |
set_end_date(\Date $date)
\Date | $date |
None found |
get_message()
None found |
set_message( $message)
$message |
None found |
get_auth()
None found |
set_auth(array $auth)
array | $auth |
None found |
get_display_duration()
None found |
set_display_duration( $display)
$display |
None found |
get_display_duration_for_admin()
None found |
set_display_duration_for_admin( $display)
$display |
None found |
is_end_date_not_reached()
None found |
is_under_maintenance()
None found |
is_authorized_in_maintenance()
None found |
load() : \MaintenanceConfig
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 |
ENABLED = 'enabled'
None found |
UNLIMITED_DURATION = 'unlimited'
None found |
END_DATE = 'end_date'
None found |
MESSAGE = 'message'
None found |
AUTH = 'auth'
None found |
DISPLAY_DURATION = 'display_duration'
None found |
DISPLAY_DURATION_FOR_ADMIN = 'display_duration_admin'
None found |
ACCESS_WHEN_MAINTAIN_ENABLED_AUTHORIZATIONS = 1
None found |