CorePlugin
Summary
Defines the Core Plugin.
In some way, the core act just like any other plugins, it has a 3 routers (public, private and web service) and a configuration file. Core plugin can be loaded just like any plugin.
Constructor
CorePlugin
Syntax
CorePlugin
()
Summary
Methods
init
Syntax
init
(
async
-
callback
Summary
Prepares plugin by creating required database indexes.
This is automatically called by core application after plugin is loaded.
Parameters:
-
callback
FunctionFunction to call when it's done with:
- Error An error if something went wrong, null otherwise
setCoreListeners
Syntax
setCoreListeners
()
private
Summary
Sets listeners on core hooks.
Properties
api
Syntax
api
PluginApi
final
Summary
Core APIs.
router
Syntax
router
Router
final
Summary
Core public router.
router
Syntax
router
Router
final
Summary
Core private router.
router
Syntax
router
Router
final
Summary
Core web service router.