\PopAbstractApplication

Abstract application class

Summary

Methods
Properties
Constants
config()
registerConfig()
addConfigValue()
updateConfigValue()
deleteConfigValue()
mergeConfig()
No public properties found
No constants found
No protected methods found
$config
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : mixed

Application config

Type

mixed

Methods

config()

config() : mixed

Access application config

Returns

mixed

registerConfig()

registerConfig(mixed  $config) : \Pop\AbstractApplication

Register a new configuration with the application

Parameters

mixed $config

Throws

\InvalidArgumentException

Returns

\Pop\AbstractApplication

addConfigValue()

addConfigValue(string  $name, string  $value) : \Pop\AbstractApplication

Add new value to config

Parameters

string $name
string $value

Returns

\Pop\AbstractApplication

updateConfigValue()

updateConfigValue(string  $name, string  $value) : \Pop\AbstractApplication

Update existing value in config

Parameters

string $name
string $value

Returns

\Pop\AbstractApplication

deleteConfigValue()

deleteConfigValue(string  $name) : \Pop\AbstractApplication

Replace existing value in config

Parameters

string $name

Returns

\Pop\AbstractApplication

mergeConfig()

mergeConfig(mixed  $config, boolean  $preserve = false) : \Pop\AbstractApplication

Merge new or altered config values with the existing config values

Parameters

mixed $config
boolean $preserve

Throws

\Pop\Config\Exception

Returns

\Pop\AbstractApplication