ModuleInstall/ModuleInstaller.php

Show: inherited
Table of Contents

Constants

Constant  DISABLED_PATH = 'Disabled'

Functions

functionUpdateSystemTabs(  $action,  $installed_modules ) : void

Parameters
Name Type Description
$action
$installed_modules

\ModuleInstaller

Package:

Properties

Propertypublic  $base_dir= ''''
Default value''Details
Type
n/a
Propertypublic  $disabled_path= 'DISABLED_PATH'
Default valueDISABLED_PATHDetails
Type
n/a
Propertypublic  $modules= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $modulesInPackage= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $silent= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublicModuleInstaller( ) : void

methodpublic__call(  $name,  $args ) : void

BC implementation to provide specific calls to extensions

Parameters
Name Type Description
$name
$args
methodpublicabort( \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

Parameters
Name Type Description
$errors \errors

an array of error messages which will be displayed on the main module loader page once it is loaded.

methodpublicaddFieldsToLayout(  $layoutAdditions ) : void

Parameters
Name Type Description
$layoutAdditions
methodpubliccopy_path(  $from,  $to,  $backup_path = '',  $uninstall = false ) : void

Parameters
Name Type Description
$from
$to
$backup_path
$uninstall
methodpubliccopy_recursive_with_backup(  $source,  $dest,  $backup_path,  $uninstall = false ) : void

Parameters
Name Type Description
$source
$dest
$backup_path
$uninstall
methodprivatedir_file_count(  $path ) : void

Parameters
Name Type Description
$path
methodprivatedir_get_files(  $path,  $base_path ) : void

Parameters
Name Type Description
$path
$base_path
methodpublicdisable(  $base_dir ) : void

Parameters
Name Type Description
$base_dir
methodpublicdisableExt( string $section, string $extname, string $module = '' ) : void

Disable generic extension

Parameters
Name Type Description
$section string

Install file section name

$extname string

Extension directory

$module string

This extension belongs to a specific module

methodpublicdisable_copy( ) : void

methodpublicdisable_dashlets( ) : void

methodpublicdisable_extensions( ) : void

methodpublicdisable_global_search( ) : void

Method disables module in global search configurations by disabled_module_visible key

return bool

methodpublicdisable_languages( ) : void

methodpublicdisable_manifest_logichooks( ) : void

methodpublicdisable_relationships(  $action = 'disable' ) : void

Parameters
Name Type Description
$action
methodpublicenable(  $base_dir,  $is_upgrade = false,  $previous_version = '' ) : void

Parameters
Name Type Description
$base_dir
$is_upgrade
$previous_version
methodpublicenableExt( string $section, string $extname, string $module = '' ) : void

Enable generic extension

Parameters
Name Type Description
$section string

Install file section name

$extname string

Extension directory

$module string

This extension belongs to a specific module

methodpublicenable_copy( ) : void

methodpublicenable_dashlets( ) : void

methodpublicenable_extensions( ) : void

methodpublicenable_global_search( ) : void

Method enables module in global search configurations by disabled_module_visible key

return bool

methodpublicenable_languages( ) : void

methodpublicenable_layoutdef(  $to_module ) : void

Parameters
Name Type Description
$to_module
methodpublicenable_manifest_logichooks( ) : void

methodpublicenable_relationships( ) : void

methodpublicenable_vardef(  $to_module ) : void

Parameters
Name Type Description
$to_module
methodpublicgetErrors( ) : \an

Return the set of errors stored in the SESSION

Returns
Type Description
\an array of errors
methodpublicgetExtDir( string $module ) : void

Get directory where module's extensions go

Parameters
Name Type Description
$module string

Module name

methodpublicinstall(  $base_dir,  $is_upgrade = false,  $previous_version = '' ) : void

Parameters
Name Type Description
$base_dir
$is_upgrade
$previous_version
methodpublicinstallExt( string $section, string $extname, string $module = '' ) : void

Install file(s) into Ext/ part

Parameters
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

methodpublicinstall_beans(  $beans ) : void

Parameters
Name Type Description
$beans
methodpublicinstall_connectors( ) : void

methodpublicinstall_copy( ) : void

methodpublicinstall_custom_fields(  $fields ) : void

Parameters
Name Type Description
$fields
methodpublicinstall_dashlets( ) : void

methodpublicinstall_dcactions( ) : void

methodpublicinstall_extensions( ) : void

methodpublicinstall_images( ) : void

methodpublicinstall_languages( ) : void

methodpublicinstall_layoutdef(  $from,  $to_module ) : void

Parameters
Name Type Description
$from
$to_module
methodpublicinstall_layoutfields( ) : void

methodpublicinstall_modules( ) : void

methodpublicinstall_relationship(  $file ) : void

Parameters
Name Type Description
$file
methodpublicinstall_relationships( ) : void

methodpublicinstall_user_prefs(  $module,  $hide_from_user = false ) : void

Parameters
Name Type Description
$module
$hide_from_user
methodpublicinstall_vardef(  $from,  $to_module ) : void

Parameters
Name Type Description
$from
$to_module
methodpubliclog(  $str ) : void

Parameters
Name Type Description
$str
methodpublicmerge_files(  $path,  $name,  $filter = '',  $application = false ) : void

Parameters
Name Type Description
$path
$name
$filter
$application
methodpublicpost_execute( ) : void

methodpublicpost_uninstall( ) : void

methodpublicpre_execute( ) : void

methodpublicpre_uninstall( ) : void

methodpublicrebuildExt( string $ext, string $filename ) : void

Rebuild generic extension

Parameters
Name Type Description
$ext string

Extension directory

$filename string

Target filename

methodpublicrebuild_all( boolean $silent = false ) : void

Rebuilds the extension files found in custom/Extension

Parameters
Name Type Description
$silent boolean
methodpublicrebuild_dashletcontainers( ) : void

methodpublicrebuild_extensions( ) : void

methodpublicrebuild_languages(  $languages = array(),  $modules = "" ) : void

Parameters
Name Type Description
$languages
$modules
methodpublicrebuild_relationships( ) : void

methodpublicrebuild_tabledictionary( ) : void

methodpublicrebuild_vardefs( ) : void

methodpublicremoveFieldsFromLayout(  $layoutAdditions ) : void

Parameters
Name Type Description
$layoutAdditions
methodpublicremove_acl_actions( ) : void

methodpublicrepair_indices( ) : void

Wrapper call to modules/Administration/RepairIndex.php

methodpublicreset_opcodes( ) : void

methodpublicuninstall(  $base_dir ) : void

Parameters
Name Type Description
$base_dir
methodpublicuninstallExt( string $section, string $extname, string $module = '' ) : void

Uninstall file(s) into Ext/ part

Parameters
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

methodpublicuninstall_beans(  $beans ) : void

Parameters
Name Type Description
$beans
methodpublicuninstall_connectors( ) : void

methodpublicuninstall_copy( ) : void

methodpublicuninstall_custom_fields(  $fields ) : void

Parameters
Name Type Description
$fields
methodpublicuninstall_customizations(  $beans ) : void

Remove any customizations made within Studio while the module was installed.

Parameters
Name Type Description
$beans
methodpublicuninstall_dashlets( ) : void

methodpublicuninstall_dcactions( ) : void

methodpublicuninstall_extensions( ) : void

methodpublicuninstall_global_search( ) : void

Method removes module from global search configurations

return bool

methodpublicuninstall_languages( ) : void

methodpublicuninstall_layoutfields( ) : void

methodpublicuninstall_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.

Parameters
Name Type Description
$cp
$backup_path
methodpublicuninstall_relationship(  $file,  $rel_dictionary = null ) : void

Parameters
Name Type Description
$file
$rel_dictionary
methodpublicuninstall_relationships(  $include_studio_relationships = false ) : void

Parameters
Name Type Description
$include_studio_relationships
methodpublicuninstall_user_prefs(  $module ) : void

Parameters
Name Type Description
$module
Documentation was generated by DocBlox 0.18.1.