ConfigurationRepository
in
Interface ConfigurationRepository
Table of Contents
- add() : void
- Adds the configuration.
- addLanguageDependent() : void
- Adds the configuration.
- delete() : void
- Deletes configurations by key name.
- find() : Configuration|null
- Searches for a configuration.
- findLanguageDependent() : LanguageDependentConfiguration|null
- Searches for a language dependent configuration.
- has() : bool
- Checks if configuration value for given key is available.
- hasLanguageDependent() : bool
- Checks if configuration for given key and language code is available.
- update() : void
- Updates the configuration.
- updateLanguageDependent() : void
- Updates the configuration.
Methods
add()
Adds the configuration.
public
add(Configuration $configuration) : void
Parameters
- $configuration : Configuration
Return values
void —addLanguageDependent()
Adds the configuration.
public
addLanguageDependent(LanguageDependentConfiguration $configuration) : void
Parameters
- $configuration : LanguageDependentConfiguration
Return values
void —delete()
Deletes configurations by key name.
public
delete(string ...$keys) : void
Parameters
- $keys : string
Return values
void —find()
Searches for a configuration.
public
find(string $key) : Configuration|null
Parameters
- $key : string
Return values
Configuration|null —findLanguageDependent()
Searches for a language dependent configuration.
public
findLanguageDependent(string $key, string $languageCode) : LanguageDependentConfiguration|null
Parameters
- $key : string
- $languageCode : string
Return values
LanguageDependentConfiguration|null —has()
Checks if configuration value for given key is available.
public
has(string $key) : bool
Parameters
- $key : string
Return values
bool —hasLanguageDependent()
Checks if configuration for given key and language code is available.
public
hasLanguageDependent(string $key, string $languageCode) : bool
Parameters
- $key : string
- $languageCode : string
Return values
bool —update()
Updates the configuration.
public
update(Configuration $configuration) : void
Parameters
- $configuration : Configuration
Return values
void —updateLanguageDependent()
Updates the configuration.
public
updateLanguageDependent(LanguageDependentConfiguration $configuration) : void
Parameters
- $configuration : LanguageDependentConfiguration