ConfigurationRepository
in package
implements
ConfigurationRepository
Class ConfigurationRepository
Interfaces, Classes and Traits
- ConfigurationRepository
- Interface ConfigurationRepository
Table of Contents
- $factory : ConfigurationFactory
- $reader : ConfigurationReader
- $writer : ConfigurationWriter
- __construct() : mixed
- ConfigurationRepository constructor.
- 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.
Properties
$factory
private
ConfigurationFactory
$factory
$reader
private
ConfigurationReader
$reader
$writer
private
ConfigurationWriter
$writer
Methods
__construct()
ConfigurationRepository constructor.
public
__construct(ConfigurationReader $reader, ConfigurationWriter $writer, ConfigurationFactory $factory) : mixed
Parameters
- $reader : ConfigurationReader
- $writer : ConfigurationWriter
- $factory : ConfigurationFactory
Return values
mixed —add()
Adds the configuration.
public
add(Configuration $configuration) : void
Parameters
- $configuration : Configuration
Tags
Return values
void —addLanguageDependent()
Adds the configuration.
public
addLanguageDependent(LanguageDependentConfiguration $configuration) : void
Parameters
- $configuration : LanguageDependentConfiguration
Tags
Return values
void —delete()
Deletes configurations by key name.
public
delete(string ...$keys) : void
Parameters
- $keys : string
Tags
Return values
void —find()
Searches for a configuration.
public
find(string $key) : Configuration|null
Parameters
- $key : string
Tags
Return values
Configuration|null —findLanguageDependent()
Searches for a language dependent configuration.
public
findLanguageDependent(string $key, string $languageCode) : LanguageDependentConfiguration|null
Parameters
- $key : string
- $languageCode : string
Tags
Return values
LanguageDependentConfiguration|null —has()
Checks if configuration value for given key is available.
public
has(string $key) : bool
Parameters
- $key : string
Tags
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
Tags
Return values
bool —update()
Updates the configuration.
public
update(Configuration $configuration) : void
Parameters
- $configuration : Configuration
Tags
Return values
void —updateLanguageDependent()
Updates the configuration.
public
updateLanguageDependent(LanguageDependentConfiguration $configuration) : void
Parameters
- $configuration : LanguageDependentConfiguration