GeschaeftskundenversandConfigurationStorage
extends ConfigurationStorage
in package
Class GeschaeftskundenversandConfigurationStorage
Tags
Table of Contents
- BUILD = 0
- CONFIG_STORAGE_NAMESPACE = 'modules/shipping/geschaeftskundenversand'
- namespace inside the configuration storage
- MAJOR_VERSION = 3
- MINOR_VERSION = 4
- $default_configuration : mixed
- array holding default values to be used in absence of configured values
- __construct() : mixed
- GeschaeftskundenversandConfigurationStorage constructor.
- addProduct() : mixed
- deleteProduct() : mixed
- get() : string
- returns a single configuration value by its key
- get_all() : array<string|int, mixed>
- Retrieves all keys/values from a given prefix namespace
- getProducts() : mixed
- set() : mixed
- stores a configuration value by name/key
- setDefaultConfiguration() : mixed
- fills $default_configuration with initial values
Constants
BUILD
public
mixed
BUILD
= ""
CONFIG_STORAGE_NAMESPACE
namespace inside the configuration storage
public
mixed
CONFIG_STORAGE_NAMESPACE
= 'modules/shipping/geschaeftskundenversand'
MAJOR_VERSION
public
mixed
MAJOR_VERSION
= 3
MINOR_VERSION
public
mixed
MINOR_VERSION
= 4
Properties
$default_configuration
array holding default values to be used in absence of configured values
protected
mixed
$default_configuration
Methods
__construct()
GeschaeftskundenversandConfigurationStorage constructor.
public
__construct() : mixed
Initializes default configuration.
Return values
mixed —addProduct()
public
addProduct(GeschaeftskundenversandProduct $product) : mixed
Parameters
- $product : GeschaeftskundenversandProduct
Return values
mixed —deleteProduct()
public
deleteProduct(mixed $index) : mixed
Parameters
- $index : mixed
Return values
mixed —get()
returns a single configuration value by its key
public
get(string $key) : string
Parameters
- $key : string
-
a configuration key (relative to the namespace prefix)
Return values
string —configuration value
get_all()
Retrieves all keys/values from a given prefix namespace
public
get_all([string $p_prefix = '' ]) : array<string|int, mixed>
Parameters
- $p_prefix : string = ''
Return values
array<string|int, mixed> —getProducts()
public
getProducts() : mixed
Return values
mixed —set()
stores a configuration value by name/key
public
set(string $name, string $value) : mixed
Parameters
- $name : string
-
name/key of configuration entry
- $value : string
-
value to be stored
Tags
Return values
mixed —setDefaultConfiguration()
fills $default_configuration with initial values
protected
setDefaultConfiguration() : mixed