GeschaeftskundenversandConfigurationStorage

Extends \ConfigurationStorage

Class GeschaeftskundenversandConfigurationStorage

extends

ConfigurationStorage

category

System

package

Extensions

subpackage

Geschaeftskundenversand

Methods

GeschaeftskundenversandConfigurationStorage constructor.

__construct() 

Initializes default configuration.

addProduct

addProduct(\GeschaeftskundenversandProduct $product) 

Arguments

deleteProduct

deleteProduct( $index) 

Arguments

$index

returns a single configuration value by its key

get(string $key) : string

Arguments

$key

string

a configuration key (relative to the namespace prefix)

Response

string

configuration value

Retrieves all keys/values from a given prefix namespace

get_all(string $p_prefix = '') : array

Arguments

$p_prefix

string

Response

array

getProducts

getProducts() 

stores a configuration value by name/key

set(string $name, string $value) 
Throws
\Exception

if data validation fails

Arguments

$name

string

name/key of configuration entry

$value

string

value to be stored

fills $default_configuration with initial values

setDefaultConfiguration() 

Constants

namespace inside the configuration storage

CONFIG_STORAGE_NAMESPACE

MAJOR_VERSION

MAJOR_VERSION

MINOR_VERSION

MINOR_VERSION

Properties

array holding default values to be used in absence of configured values

default_configuration : 

Type(s)