Definition at line 8 of file module_manager.inc.
◆ addCodeModule()
static ModuleManager::addCodeModule |
( |
|
$title, |
|
|
|
$php_code_file, |
|
|
|
$component = null , |
|
|
|
$global = false , |
|
|
|
$global_position = "" , |
|
|
|
$css_class = "" |
|
) |
| |
|
static |
This utility method adds a code module record for the specified PHP code file.
This can be used within upgrade scripts to programmatically deploy modules.
- Parameters
-
string | $title | human-readable name for the module |
string | $php_code_file | file path to the module code, relative either to the home directory or to a component directory if a component is specified |
string | $component | (optional) name of the component containing the module code |
boolean | $global | (optional) true if the module is global in scope |
string | $global_position | (optional) position to display at for global modules. This is required if $global is true. |
string | $css_class | (optional) CSS class to be applied to the module when renderered |
- Returns
- Module
Definition at line 39 of file module_manager.inc.
41 $file = (
$component) ?
"{$component},{$php_code_file}" : $php_code_file;
48 $module->global_position = $global_position;
49 $module->css_class = $css_class;
Defines the Module class.
◆ ModuleManager()
ModuleManager::ModuleManager |
( |
| ) |
|
◆ registerSerializationHandler()
static ModuleManager::registerSerializationHandler |
( |
| ) |
|
|
static |
Definition at line 21 of file module_manager.inc.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
Provides a simple implementation of a SerializationHandler that can serialize a single DataItem class...
◆ upgradeComponent()
static ModuleManager::upgradeComponent |
( |
|
$version | ) |
|
|
static |
The documentation for this class was generated from the following file: