ModuleInstall/ModuleInstaller.php
Constants
Functions
\ModuleInstaller
Properties
Methods
__call(
$name, $args
)
:
void
BC implementation to provide specific calls to extensions
Name | Type | Description |
---|---|---|
$name | ||
$args |
abort(
\errors $errors
=
array()
)
:
void
Static 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
=
''
)
:
void
Disable 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(
)
:
void
Method 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
=
''
)
:
void
Enable 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(
)
:
void
Method enables module in global search configurations by disabled_module_visible key
return bool
getErrors(
)
:
\an
Return the set of errors stored in the SESSION
Type | Description |
---|---|
\an | array of errors |
getExtDir(
string $module
)
:
void
Get 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
=
''
)
:
void
Install 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
)
:
void
Rebuild generic extension
Name | Type | Description |
---|---|---|
$ext | string | Extension directory |
$filename | string | Target filename |
rebuild_all(
boolean $silent
=
false
)
:
void
Rebuilds 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
=
''
)
:
void
Uninstall 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
)
:
void
Remove any customizations made within Studio while the module was installed.
Name | Type | Description |
---|---|---|
$beans |
uninstall_global_search(
)
:
void
Method removes module from global search configurations
return bool
uninstall_new_files(
$cp, $backup_path
)
:
void
Removes 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 |