ModuleInstall/ModuleInstaller.php
Constants
Functions
\ModuleInstaller
Properties
Methods

__call(
$name, $args
)
:
voidBC implementation to provide specific calls to extensions
| Name | Type | Description |
|---|---|---|
| $name | ||
| $args |

abort(
\errors $errors
=
array()
)
:
voidStatic function which allows a module developer to abort their progress, pass in an array of errors and redirect back to the main module loader page
| Name | Type | Description |
|---|---|---|
| $errors | \errors | an array of error messages which will be displayed on the main module loader page once it is loaded. |

copy_path(
$from, $to, $backup_path
=
'', $uninstall
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $from | ||
| $to | ||
| $backup_path | ||
| $uninstall |

copy_recursive_with_backup(
$source, $dest, $backup_path, $uninstall
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $source | ||
| $dest | ||
| $backup_path | ||
| $uninstall |

disableExt(
string $section, string $extname, string $module
=
''
)
:
voidDisable generic extension
| Name | Type | Description |
|---|---|---|
| $section | string | Install file section name |
| $extname | string | Extension directory |
| $module | string | This extension belongs to a specific module |

disable_global_search(
)
:
voidMethod disables module in global search configurations by disabled_module_visible key
return bool

enable(
$base_dir, $is_upgrade
=
false, $previous_version
=
''
)
:
void| Name | Type | Description |
|---|---|---|
| $base_dir | ||
| $is_upgrade | ||
| $previous_version |

enableExt(
string $section, string $extname, string $module
=
''
)
:
voidEnable generic extension
| Name | Type | Description |
|---|---|---|
| $section | string | Install file section name |
| $extname | string | Extension directory |
| $module | string | This extension belongs to a specific module |

enable_global_search(
)
:
voidMethod enables module in global search configurations by disabled_module_visible key
return bool

getErrors(
)
:
\anReturn the set of errors stored in the SESSION
| Type | Description |
|---|---|
| \an | array of errors |

getExtDir(
string $module
)
:
voidGet directory where module's extensions go
| Name | Type | Description |
|---|---|---|
| $module | string | Module name |

install(
$base_dir, $is_upgrade
=
false, $previous_version
=
''
)
:
void| Name | Type | Description |
|---|---|---|
| $base_dir | ||
| $is_upgrade | ||
| $previous_version |

installExt(
string $section, string $extname, string $module
=
''
)
:
voidInstall file(s) into Ext/ part
| Name | Type | Description |
|---|---|---|
| $section | string | Name of the install file section |
| $extname | string | Name in Ext directory |
| $module | string | This extension belongs to a specific module |

install_user_prefs(
$module, $hide_from_user
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $module | ||
| $hide_from_user |

merge_files(
$path, $name, $filter
=
'', $application
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $path | ||
| $name | ||
| $filter | ||
| $application |

rebuildExt(
string $ext, string $filename
)
:
voidRebuild generic extension
| Name | Type | Description |
|---|---|---|
| $ext | string | Extension directory |
| $filename | string | Target filename |

rebuild_all(
boolean $silent
=
false
)
:
voidRebuilds the extension files found in custom/Extension
| Name | Type | Description |
|---|---|---|
| $silent | boolean |

rebuild_languages(
$languages
=
array(), $modules
=
""
)
:
void| Name | Type | Description |
|---|---|---|
| $languages | ||
| $modules |

uninstallExt(
string $section, string $extname, string $module
=
''
)
:
voidUninstall file(s) into Ext/ part
| Name | Type | Description |
|---|---|---|
| $section | string | Name of the install file section |
| $extname | string | Name in Ext directory |
| $module | string | This extension belongs to a specific module |

uninstall_customizations(
$beans
)
:
voidRemove any customizations made within Studio while the module was installed.
| Name | Type | Description |
|---|---|---|
| $beans |

uninstall_global_search(
)
:
voidMethod removes module from global search configurations
return bool

uninstall_new_files(
$cp, $backup_path
)
:
voidRemoves any files that were added by the loaded module. If the files already existed prior to install it will be handled by copy_path with the uninstall parameter.
| Name | Type | Description |
|---|---|---|
| $cp | ||
| $backup_path |

uninstall_relationship(
$file, $rel_dictionary
=
null
)
:
void| Name | Type | Description |
|---|---|---|
| $file | ||
| $rel_dictionary |

uninstall_relationships(
$include_studio_relationships
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $include_studio_relationships |