\Pop\ModuleManager

Module manager class

Summary

Methods
Properties
Constants
__construct()
registerModules()
register()
isRegistered()
hasModule()
getModuleName()
get()
unregister()
__set()
__get()
__isset()
__unset()
offsetSet()
offsetGet()
offsetExists()
offsetUnset()
count()
getIterator()
No public properties found
No constants found
No protected methods found
$modules
N/A
No private methods found
No private properties found
N/A

Properties

$modules

$modules : array

Modules

Type

array

Methods

__construct()

__construct(array  $modules = null) 

Constructor

Instantiate the module manager object.

Parameters

array $modules

Throws

\Pop\Module\Exception

registerModules()

registerModules(array  $modules) : \Pop\Module\Manager

Register module objects

Parameters

array $modules

Throws

\Pop\Module\Exception

Returns

\Pop\Module\Manager

isRegistered()

isRegistered(string  $name) : boolean

Determine if a module object is registered with the manager by $name

Parameters

string $name

Returns

boolean

hasModule()

hasModule(\Pop\Module\ModuleInterface  $module) : boolean

Determine if a module object is registered with the manager by $module object comparison

Parameters

\Pop\Module\ModuleInterface $module

Returns

boolean

getModuleName()

getModuleName(\Pop\Module\ModuleInterface  $module) : string

Get a module object's registered name

Parameters

\Pop\Module\ModuleInterface $module

Returns

string

get()

get(string  $name) : mixed

Get a module

Parameters

string $name

Returns

mixed

unregister()

unregister(string  $name) : \Pop\Module\Manager

Unregister a module

Parameters

string $name

Returns

\Pop\Module\Manager

__set()

__set(string  $name, mixed  $value) : \Pop\Module\Manager

Register a module with the manager

Parameters

string $name
mixed $value

Throws

\Pop\Module\Exception

Returns

\Pop\Module\Manager

__get()

__get(string  $name) : \Pop\Module\Module

Get a registered module

Parameters

string $name

Returns

\Pop\Module\Module

__isset()

__isset(string  $name) : boolean

Determine if a module is registered with the manager object

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : \Pop\Module\Manager

Unregister a module with the manager

Parameters

string $name

Returns

\Pop\Module\Manager

offsetSet()

offsetSet(string  $offset, mixed  $value) : \Pop\Module\Manager

Register a module with the manager

Parameters

string $offset
mixed $value

Throws

\Pop\Module\Exception

Returns

\Pop\Module\Manager

offsetGet()

offsetGet(string  $offset) : \Pop\Module\Module

Get a registered module

Parameters

string $offset

Returns

\Pop\Module\Module

offsetExists()

offsetExists(string  $offset) : boolean

Determine if a module is registered with the manager object

Parameters

string $offset

Returns

boolean

offsetUnset()

offsetUnset(string  $offset) : \Pop\Module\Manager

Unregister a module with the manager

Parameters

string $offset

Returns

\Pop\Module\Manager

count()

count() : integer

Return count

Returns

integer

getIterator()

getIterator() : \ArrayIterator

Get iterator

Returns

\ArrayIterator