ModuleManager
extends StaticFactory
in package
User Extended by Shawn Clake Class ModuleManager User Extended is licensed under the MIT license.
Tags
Table of Contents
- $modules : mixed
- Holds all of the loaded modules
- __callStatic() : mixed
- Main factory function which utilizes PHP's magic method to call a suffixed factory function on the child class.
- all() :
- allFactory() : $this
- Loads all of the modules
- factory() : mixed
- Helper function which can also be used to simply create an instance of a child class in cases where initialization functions aren't needed.
- findModule() : mixed
- Returns the module specified by $name and null if none are found
- getModules() : mixed
- Returns a collection of the modules loaded
- refresh() : $this
- Refreshes the module DB table by querying all of the registered modules in the project
Properties
$modules
Holds all of the loaded modules
private
mixed
$modules
Methods
__callStatic()
Main factory function which utilizes PHP's magic method to call a suffixed factory function on the child class.
public
static __callStatic( $name, $arguments) : mixed
Parameters
Return values
mixed —all()
public
static all() :
ModuleManager
Return values
—allFactory()
Loads all of the modules
public
allFactory() : $this
Return values
$this —factory()
Helper function which can also be used to simply create an instance of a child class in cases where initialization functions aren't needed.
public
static factory() : mixed
Generally you will want to use the static magic method below.
Return values
mixed —findModule()
Returns the module specified by $name and null if none are found
public
static findModule( $name) : mixed
Parameters
Return values
mixed —getModules()
Returns a collection of the modules loaded
public
getModules() : mixed
Return values
mixed —refresh()
Refreshes the module DB table by querying all of the registered modules in the project
public
refresh() : $this