Return an array of module information
Example:
public static function getModuleInfo() { return array( 'title' => 'Your
Module's Title', 'version' => 100, 'author' => 'Ryan Cramer', 'summary'
=> 'Description of what this module does and who made it.', 'href' =>
'http://www.domain.com/info/about/this/module/', 'singular' => false,
'autoload' => false, 'requires' => array('HelloWorld', 'LazyCron'),
'installs' => array('Module1', 'Module2', 'Module3'), ); }
The retured array is associative with the following fields. Fields bulleted
with a "+" are required and fields bulleted with a "-" are optional, and fields
bulleted with a "*" may be optional (see details):
- title: The module's title.
- version: an integer that indicates the version number, 101 = 1.0.1
- summary: a summary of the module (1 sentence to 1 paragraph reommended)
- href: URL to more information about the module.
- requires: array of module class names that are required by this module in
order to install.
If just one module is required, then it can also be a string with just the
module name.
- installs: array of module class names that this module will handle
install/uninstall.
This causes PW's dependency checker to ignore them and it is assumed your
module will handle them (optional). If your module does not handle them, PW will
automatically install/uninstall them immediately after your module. Like
requires, this may be a string if there's only one and must be an array if
multiple.
- singular: is only one instance of this module allowed? return boolean true
or false.
If specified, this overrides the isSingular() method, if that method exists
in your class. See the information for the isSingular() method for more about
the 'singular' property. If you don't provide an isSingular() method, then you
should provide this property here.
- autoload: should this module load automatically at application start? return
boolean true or false.
If specified, this overrides the isAutoload() method, if that method exists
in your class. See the information for the isAutoload() method for more about
the 'autoload' property. If you don't provide an isAutoload() method, then you
should provide this property here.
- permanent: boolean, for core only. True only if the module is permanent and
uninstallable.
This is true only of PW core modules, so leave this out elsewhere.
Returns
array
Implementation of