Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \GeneralConfig
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_site_url()
None found |
get_complete_site_url()
None found |
is_site_url_https()
None found |
set_site_url(string $url)
string | $url | The URL must begin with a protocol (for instance http://) and must not end with a slash. |
None found |
get_site_path()
None found |
set_site_path( $path)
$path |
None found |
get_phpboost_major_version()
None found |
set_phpboost_major_version( $version)
$version |
None found |
get_site_install_date() : \Date
None found |
set_site_install_date(\Date $date)
\Date | $date |
None found |
get_site_timezone()
None found |
set_site_timezone( $timezone)
$timezone |
None found |
get_default_site_url()
None found |
get_default_site_path()
None found |
get_site_name()
None found |
set_site_name( $site_name)
$site_name |
None found |
get_site_slogan()
None found |
set_site_slogan( $site_slogan)
$site_slogan |
None found |
get_site_description()
None found |
set_site_description( $site_description)
$site_description |
None found |
get_module_home_page()
None found |
set_module_home_page( $start_page)
$start_page |
None found |
get_other_home_page()
None found |
set_other_home_page( $start_page)
$start_page |
None found |
load() : \GeneralConfig
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 |
remove_dirs_from_root( $path)
$path |
None found |
$properties_map :
None found |
SITE_URL = 'site_url'
None found |
SITE_PATH = 'site_path'
None found |
SITE_NAME = 'site_name'
None found |
SITE_SLOGAN = 'site_slogan'
None found |
SITE_DESCRIPTION = 'site_description'
None found |
MODULE_HOME_PAGE = 'module_home_page'
None found |
OTHER_HOME_PAGE = 'other_home_page'
None found |
PHPBOOST_VERSION = 'phpboost_version'
None found |
SITE_INSTALL_DATE = 'site_install_date'
None found |
SITE_TIMEZONE = 'timezone'
None found |