\Pop\ModuleModule

Pop module class

Summary

Methods
Properties
Constants
__construct()
register()
loadConfig()
mergeConfig()
application()
config()
isRegistered()
offsetSet()
offsetGet()
offsetExists()
offsetUnset()
No public properties found
No constants found
No protected methods found
$config
$application
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : mixed

Module config

Type

mixed

$application

$application : \Pop\Application

Application

Type

\Pop\Application

Methods

__construct()

__construct() : \Pop\Module\Module

Constructor

Instantiate a module object

Optional parameters are an application instance or a configuration object or array

Returns

\Pop\Module\Module

loadConfig()

loadConfig(mixed  $config) : \Pop\Module\Module

Load module config

Parameters

mixed $config

Throws

\InvalidArgumentException

Returns

\Pop\Module\Module

mergeConfig()

mergeConfig(mixed  $config, boolean  $replace = false) : \Pop\Module\Module

Merge new or altered config values with the existing config values

Parameters

mixed $config
boolean $replace

Returns

\Pop\Module\Module

application()

application() : \Pop\Application

Get application

Returns

\Pop\Application

config()

config() : mixed

Access module config

Returns

mixed

isRegistered()

isRegistered() : boolean

Determine if the module has been registered with an application object

Returns

boolean

offsetSet()

offsetSet(string  $offset, mixed  $value) : mixed

Set a value in the array

Parameters

string $offset
mixed $value

Returns

mixed

offsetGet()

offsetGet(string  $offset) : mixed

Get a value from the array

Parameters

string $offset

Returns

mixed

offsetExists()

offsetExists(string  $offset) : mixed

Determine if a value exists

Parameters

string $offset

Returns

mixed

offsetUnset()

offsetUnset(string  $offset) : mixed

Unset a value from the array

Parameters

string $offset

Returns

mixed