Protected Member Functions |
| _addToDisabledList ($sModuleId) |
| _deleteModule ($sModuleId) |
| _deleteBlock ($sModuleId) |
| _deleteTemplateFiles ($sModuleId) |
| _deleteModuleFiles ($sModuleId) |
| _deleteModuleEvents ($sModuleId) |
| _deleteModuleVersions ($sModuleId) |
| _addExtensions (oxModule $oModule) |
| _mergeModuleArrays ($aAllModuleArray, $aAddModuleArray) |
| _removeFromDisabledList ($sModuleId) |
| _addTemplateBlocks ($aModuleBlocks, $sModuleId) |
| _addModuleFiles ($aModuleFiles, $sModuleId) |
| _addTemplateFiles ($aModuleTemplates, $sModuleId) |
| _addModuleSettings ($aModuleSettings, $sModuleId) |
| _addModuleEvents ($aModuleEvents, $sModuleId) |
| _addModuleVersion ($sModuleVersion, $sModuleId) |
| _callEvent ($sEvent, $sModuleId) |
| _removeNotUsedExtensions ($aInstalledExtensions, oxModule $oModule) |
| _getModuleExtensionsGarbage ($aModuleMetaDataExtensions, $aModuleInstalledExtensions) |
| _removeGarbage ($aInstalledExtensions, $aGarbage) |
| _removeNotUsedSettings ($aModuleSettings, $sModuleId) |
| _getModuleConfigs ($sModuleId) |
| _parseModuleSettings ($aModuleSettings) |
| _removeModuleConfigs ($sModuleId, $aConfigsToRemove) |
| _filterModuleArray ($aModules, $sModuleId) |
| _saveToConfig ($sVariableName, $sVariableValue, $sVariableType= 'aarr') |
Detailed Description
Modules installer class.
Definition at line 9 of file oxmoduleinstaller.php.
Constructor & Destructor Documentation
oxModuleInstaller::__construct |
( |
oxModuleCache |
$oxModuleCache = null | ) |
|
Member Function Documentation
oxModuleInstaller::_addExtensions |
( |
oxModule |
$oModule | ) |
|
|
protected |
oxModuleInstaller::_addModuleEvents |
( |
|
$aModuleEvents, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_addModuleFiles |
( |
|
$aModuleFiles, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_addModuleSettings |
( |
|
$aModuleSettings, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_addModuleVersion |
( |
|
$sModuleVersion, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_addTemplateBlocks |
( |
|
$aModuleBlocks, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_addTemplateFiles |
( |
|
$aModuleTemplates, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
Add module template files to config for smarty.
- Parameters
-
array | $aModuleTemplates | Module templates array |
string | $sModuleId | Module id |
Definition at line 401 of file oxmoduleinstaller.php.
oxModuleInstaller::_addToDisabledList |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_callEvent |
( |
|
$sEvent, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
oxModuleInstaller::_deleteBlock |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_deleteModule |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_deleteModuleEvents |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_deleteModuleFiles |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_deleteModuleVersions |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_deleteTemplateFiles |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_filterModuleArray |
( |
|
$aModules, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
Filter module array using module id
- Parameters
-
array | $aModules | Module array (nested format) |
string | $sModuleId | Module id/folder name |
- Returns
- array
Definition at line 667 of file oxmoduleinstaller.php.
oxModuleInstaller::_getModuleConfigs |
( |
|
$sModuleId | ) |
|
|
protected |
Returns module configuration from database
- Parameters
-
- Returns
- array
Definition at line 606 of file oxmoduleinstaller.php.
oxModuleInstaller::_getModuleExtensionsGarbage |
( |
|
$aModuleMetaDataExtensions, |
|
|
|
$aModuleInstalledExtensions |
|
) |
| |
|
protected |
Returns extension which is no longer in metadata - garbage
- Parameters
-
array | $aModuleMetaDataExtensions | extensions defined in metadata. |
array | $aModuleInstalledExtensions | extensions which are installed |
- Returns
- array
Definition at line 542 of file oxmoduleinstaller.php.
oxModuleInstaller::_mergeModuleArrays |
( |
|
$aAllModuleArray, |
|
|
|
$aAddModuleArray |
|
) |
| |
|
protected |
Merge two nested module arrays together so that the values of $aAddModuleArray are appended to the end of the $aAllModuleArray
- Parameters
-
array | $aAllModuleArray | All Module array (nested format) |
array | $aAddModuleArray | Added Module array (nested format) |
- Returns
- array
Definition at line 312 of file oxmoduleinstaller.php.
oxModuleInstaller::_parseModuleSettings |
( |
|
$aModuleSettings | ) |
|
|
protected |
Parses module config variable names to array from module settings
- Parameters
-
array | $aModuleSettings | Module settings |
- Returns
- array
Definition at line 624 of file oxmoduleinstaller.php.
oxModuleInstaller::_removeFromDisabledList |
( |
|
$sModuleId | ) |
|
|
protected |
oxModuleInstaller::_removeGarbage |
( |
|
$aInstalledExtensions, |
|
|
|
$aGarbage |
|
) |
| |
|
protected |
Removes garbage - not exiting module extensions, returns clean array of installed extensions
- Parameters
-
array | $aInstalledExtensions | all installed extensions ( from all modules ) |
array | $aGarbage | extension which are not used and should be removed |
- Returns
- array
Definition at line 566 of file oxmoduleinstaller.php.
oxModuleInstaller::_removeModuleConfigs |
( |
|
$sModuleId, |
|
|
|
$aConfigsToRemove |
|
) |
| |
|
protected |
Removes module configs from database
- Parameters
-
string | $sModuleId | Module id |
array | $aConfigsToRemove | Configs to remove |
Definition at line 643 of file oxmoduleinstaller.php.
oxModuleInstaller::_removeNotUsedExtensions |
( |
|
$aInstalledExtensions, |
|
|
oxModule |
$oModule |
|
) |
| |
|
protected |
Removes garbage ( module not used extensions ) from all installed extensions list
- Parameters
-
- Returns
- array
Definition at line 517 of file oxmoduleinstaller.php.
oxModuleInstaller::_removeNotUsedSettings |
( |
|
$aModuleSettings, |
|
|
|
$sModuleId |
|
) |
| |
|
protected |
Removes configs which are removed from module metadata
- Parameters
-
array | $aModuleSettings | Module settings |
string | $sModuleId | Module id |
Definition at line 588 of file oxmoduleinstaller.php.
oxModuleInstaller::_saveToConfig |
( |
|
$sVariableName, |
|
|
|
$sVariableValue, |
|
|
|
$sVariableType = 'aarr' |
|
) |
| |
|
protected |
Save module parameters to shop config
- Parameters
-
string | $sVariableName | config name |
string | $sVariableValue | config value |
string | $sVariableType | config type |
Definition at line 688 of file oxmoduleinstaller.php.
oxModuleInstaller::activate |
( |
oxModule |
$oModule | ) |
|
Activate extension by merging module class inheritance information with shop module array
- Parameters
-
- Returns
- bool
Definition at line 54 of file oxmoduleinstaller.php.
oxModuleInstaller::buildModuleChains |
( |
|
$aModuleArray | ) |
|
Build module chains from nested array
- Parameters
-
array | $aModuleArray | Module array (nested format) |
- Returns
- array
Definition at line 139 of file oxmoduleinstaller.php.
oxModuleInstaller::deactivate |
( |
oxModule |
$oModule | ) |
|
Deactivate extension by adding disable module class information to disabled module array
- Parameters
-
- Returns
- bool
Definition at line 92 of file oxmoduleinstaller.php.
oxModuleInstaller::diffModuleArrays |
( |
|
$aAllModuleArray, |
|
|
|
$aRemModuleArray |
|
) |
| |
Diff two nested module arrays together so that the values of $aRmModuleArray are removed from $aAllModuleArray
- Parameters
-
array | $aAllModuleArray | All Module array (nested format) |
array | $aRemModuleArray | Remove Module array (nested format) |
- Returns
- array
Definition at line 160 of file oxmoduleinstaller.php.
oxModuleInstaller::getModuleCache |
( |
| ) |
|
oxModuleInstaller::getModulesWithExtendedClass |
( |
| ) |
|
oxModuleInstaller::setModuleCache |
( |
|
$oModuleCache | ) |
|
Member Data Documentation
oxModuleInstaller::$_oModuleCache |
|
protected |
The documentation for this class was generated from the following file: