Public Member Functions | Protected Member Functions | Protected Attributes

oxModule Class Reference

Inheritance diagram for oxModule:
Collaboration diagram for oxModule:

List of all members.

Public Member Functions

 load ($sModuleId)
 loadByDir ($sModuleDir)
 loadModule ($sModuleId)
 loadLegacyModule ($sModuleId)
 loadUnregisteredModule ($sModuleId)
 getDescription ()
 getTitle ()
 getId ()
 getIdByPath ($sModule)
 getInfo ($sName, $iLang=null)
 isActive ()
 isExtended ()
 isLegacy ()
 isRegistered ()
 hasMetadata ()
 isFile ()
 activate ()
 deactivate ($sModuleId=null)
 buildModuleChains ($aModuleArray)
 mergeModuleArrays ($aAllModuleArray, $aAddModuleArray)
 filterModuleArray ($aModules, $sModuleId)
 getModulePath ($sModuleId=null)
 getAllModules ()
 getLegacyModules ()
 getDisabledModules ()
 getModulePaths ()
 getModuleTemplates ()
 getModuleFiles ()
 getTemplates ($sModuleId=null)
 saveLegacyModule ($sModuleId, $sModuleName, $aModuleInfo=null)
 updateModuleIds ($sModuleLegacyId, $sModuleId)

Protected Member Functions

 _changeBlockStatus ($sModule, $iStatus= '0')
 _resetCache ()
 _hasInstalledTemplateBlocks ($sModuleId)
 _addTemplateBlocks ($aModuleBlocks, $sModuleId=null)
 _addTemplateFiles ($aModuleTemplates, $sModuleId=null)
 _addModuleFiles ($aModuleFiles, $sModuleId=null)
 _addModuleSettings ($aModuleSettings, $sModuleId=null)

Protected Attributes

 $_aModule = array()
 $_blMetadata = false
 $_blRegistered = false
 $_blFile = false
 $_blLegacy = false

Detailed Description

Class handling shop modules

Definition at line 7 of file oxmodule.php.


Member Function Documentation

oxModule._addModuleFiles ( aModuleFiles,
sModuleId = null 
) [protected]

Add module files to config for autoload.

Parameters:
array $aModuleFiles Module files array
string $sModuleId Module id
Returns:
null

Definition at line 713 of file oxmodule.php.

oxModule._addModuleSettings ( aModuleSettings,
sModuleId = null 
) [protected]

Add module settings to database.

Parameters:
array $aModuleSettings Module settings array
string $sModuleId Module id
Returns:
null

Definition at line 737 of file oxmodule.php.

oxModule._addTemplateBlocks ( aModuleBlocks,
sModuleId = null 
) [protected]

Add module templates to database.

Parameters:
array $aModuleBlocks Module blocks array
string $sModuleId Module id
Returns:
null

Definition at line 654 of file oxmodule.php.

oxModule._addTemplateFiles ( aModuleTemplates,
sModuleId = null 
) [protected]

Add module tamplate files to config for smarty.

Parameters:
array $aModuleTemplates Module templates array
string $sModuleId Module id
Returns:
null

Definition at line 689 of file oxmodule.php.

oxModule._changeBlockStatus ( sModule,
iStatus = '0' 
) [protected]

Deactivates or activates oxblocks of a module

Parameters:
string $sModule Module name
integer $iStatus 0 or 1 to (de)activate blocks
Returns:
null

Definition at line 456 of file oxmodule.php.

oxModule._hasInstalledTemplateBlocks ( sModuleId  )  [protected]

Checks if module has installed template blocks

Parameters:
string $sModuleId Module ID
Returns:
bool

Definition at line 638 of file oxmodule.php.

oxModule._resetCache (  )  [protected]

Resets tamplate, language and menu xml cache

Returns:
null

Definition at line 468 of file oxmodule.php.

oxModule.activate (  ) 

Activate extension by merging module class inheritance information with shop module array

Returns:
bool

Definition at line 363 of file oxmodule.php.

oxModule.buildModuleChains ( aModuleArray  ) 

Build module chains from nested array

Parameters:
array $aModuleArray Module array (nested format)
Returns:
array

Definition at line 483 of file oxmodule.php.

oxModule.deactivate ( sModuleId = null  ) 

Deactivate extension by adding disable module class information to disabled module array

Parameters:
string $sModuleId Module Id
Returns:
bool

Definition at line 419 of file oxmodule.php.

oxModule.filterModuleArray ( aModules,
sModuleId 
)

Filter module array using modue id

Parameters:
array $aModules Module array (nested format)
string $sModuleId Module id/folder name
Returns:
array

Definition at line 533 of file oxmodule.php.

oxModule.getAllModules (  ) 

Get parsed modules

Returns:
array

Definition at line 576 of file oxmodule.php.

oxModule.getDescription (  ) 

Get module description

Returns:
string

Definition at line 171 of file oxmodule.php.

oxModule.getDisabledModules (  ) 

Get disabled module id's

Returns:
array

Definition at line 596 of file oxmodule.php.

oxModule.getId (  ) 

Get module ID

Returns:
string

Definition at line 195 of file oxmodule.php.

oxModule.getIdByPath ( sModule  ) 

Get module ID

Parameters:
string $sModule extention full path
Returns:
string

Definition at line 207 of file oxmodule.php.

oxModule.getInfo ( sName,
iLang = null 
)

Get module info item. If second param is passed, will try to get value according selected language.

Parameters:
string $sName name of info item to retrieve
string $iLang language ID
Returns:
mixed

Definition at line 237 of file oxmodule.php.

oxModule.getLegacyModules (  ) 

Get legacy modules list

Returns:
array

Definition at line 586 of file oxmodule.php.

oxModule.getModuleFiles (  ) 

Get module files

Returns:
array

Definition at line 626 of file oxmodule.php.

oxModule.getModulePath ( sModuleId = null  ) 

Get module dir

Parameters:
string $sModuleId Module ID
Returns:
string

Definition at line 553 of file oxmodule.php.

oxModule.getModulePaths (  ) 

Get module id's with path

Returns:
array

Definition at line 606 of file oxmodule.php.

oxModule.getModuleTemplates (  ) 

Get module template files

Returns:
array

Definition at line 616 of file oxmodule.php.

oxModule.getTemplates ( sModuleId = null  ) 

Return tempates affected by template blocks for given module id.

Parameters:
string $sModuleId Module id
Returns:
array

Definition at line 779 of file oxmodule.php.

oxModule.getTitle (  ) 

Get module title

Returns:
string

Definition at line 183 of file oxmodule.php.

oxModule.hasMetadata (  ) 

Checks if module has metadata

Returns:
bool

Definition at line 343 of file oxmodule.php.

oxModule.isActive (  ) 

Check if extension is active

Returns:
bool

Definition at line 270 of file oxmodule.php.

oxModule.isExtended (  ) 

Check if extension das any extended classes

Returns:
bool

Definition at line 309 of file oxmodule.php.

oxModule.isFile (  ) 

Checks if module is single file

Returns:
bool

Definition at line 353 of file oxmodule.php.

oxModule.isLegacy (  ) 

Checks if module is defined as legacy module

Returns:
bool

Definition at line 323 of file oxmodule.php.

oxModule.isRegistered (  ) 

Checks if module is registered in any way

Returns:
bool

Definition at line 333 of file oxmodule.php.

oxModule.load ( sModuleId  ) 

Load module info

Parameters:
string $sModuleId Module ID
Returns:
bool

Definition at line 51 of file oxmodule.php.

oxModule.loadByDir ( sModuleDir  ) 

Load module by dir name

Parameters:
string $sModuleDir Module dir name
Returns:
bool

Definition at line 69 of file oxmodule.php.

oxModule.loadLegacyModule ( sModuleId  ) 

Load Extension from legacy metadata

Parameters:
string $sModuleId Module ID
Returns:
bool

Definition at line 118 of file oxmodule.php.

oxModule.loadModule ( sModuleId  ) 

Load Extension from metadata

Parameters:
string $sModuleId Module ID
Returns:
bool

Definition at line 92 of file oxmodule.php.

oxModule.loadUnregisteredModule ( sModuleId  ) 

Load extension without any metadata

Parameters:
string $sModuleId Module ID
Returns:
bool

Definition at line 143 of file oxmodule.php.

oxModule.mergeModuleArrays ( aAllModuleArray,
aAddModuleArray 
)

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 503 of file oxmodule.php.

oxModule.saveLegacyModule ( sModuleId,
sModuleName,
aModuleInfo = null 
)

Enables modules, that dont have metadata file activation/deactivation. Writes to "aLegacyModules" config variable classes, that current module extedens.

Parameters:
string $sModuleId Module id
string $sModuleName Module name
string $aModuleInfo Extended classes
Returns:
string module id

Definition at line 806 of file oxmodule.php.

oxModule.updateModuleIds ( sModuleLegacyId,
sModuleId 
)

Update module ID in modules config variables aModulePaths and aDisabledModules.

Parameters:
string $sModuleLegacyId Old module ID
string $sModuleId New module ID
Returns:
null

Definition at line 839 of file oxmodule.php.


Member Data Documentation

oxModule.$_aModule = array() [protected]

Definition at line 14 of file oxmodule.php.

oxModule.$_blFile = false [protected]

Definition at line 35 of file oxmodule.php.

oxModule.$_blLegacy = false [protected]

Definition at line 42 of file oxmodule.php.

oxModule.$_blMetadata = false [protected]

Definition at line 21 of file oxmodule.php.

oxModule.$_blRegistered = false [protected]

Definition at line 28 of file oxmodule.php.


The documentation for this class was generated from the following file: