Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \ServerEnvironmentConfig
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_url_rewriting_enabled()
| None found |
set_url_rewriting_enabled( $enabled)
| $enabled |
| None found |
is_redirection_www_enabled()
| None found |
enable_redirection_www()
| None found |
disable_redirection_www()
| None found |
get_redirection_www_mode()
| None found |
is_redirection_www_mode_with_www()
| None found |
set_redirection_www_mode( $value)
| $value |
| None found |
is_redirection_https_enabled()
| None found |
enable_redirection_https()
| None found |
disable_redirection_https()
| None found |
is_hsts_security_enabled()
| None found |
enable_hsts_security()
| None found |
disable_hsts_security()
| None found |
get_hsts_security_duration()
| None found |
set_hsts_security_duration( $value)
| $value |
| None found |
get_config_hsts_security_duration()
| None found |
is_hsts_security_subdomain_enabled()
| None found |
enable_hsts_subdomain_security()
| None found |
disable_hsts_subdomain_security()
| None found |
get_htaccess_manual_content()
| None found |
set_htaccess_manual_content( $content)
| $content |
| None found |
get_nginx_manual_content()
| None found |
set_nginx_manual_content( $content)
| $content |
| None found |
is_output_gziping_enabled()
| None found |
set_output_gziping_enabled( $enabled)
| $enabled |
| None found |
load() : \ServerEnvironmentConfig
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 |
htaccess_exists()
| None found |
nginx_conf_exists()
| None found |
$properties_map :
| None found |
URL_REWRITING_ENABLED = 'url_rewriting_enabled'
| None found |
REDIRECTION_WWW_ENABLED = 'redirection_www_enabled'
| None found |
REDIRECTION_WWW_MODE = 'redirection_www_mode'
| None found |
REDIRECTION_WWW_WITH_WWW = 'with_www'
| None found |
REDIRECTION_WWW_WITHOUT_WWW = 'without_www'
| None found |
REDIRECTION_HTTPS_ENABLED = 'redirection_https_enabled'
| None found |
HSTS_SECURITY_ENABLED = 'hsts_security_enabled'
| None found |
HSTS_SECURITY_SUBDOMAIN_ENABLED = 'hsts_security_subdomain_enabled'
| None found |
HSTS_SECURITY_DURATION = 'hsts_security_duration'
| None found |
HTACCESS_MANUAL_CONTENT = 'htaccess_manual_content'
| None found |
NGINX_MANUAL_CONTENT = 'nginx_manual_content'
| None found |
OUTPUT_GZIPING_ENABLED = 'output_gziping_enabled'
| None found |