Class humhub\modules\admin\libs\OnlineModuleManager

Inheritancehumhub\modules\admin\libs\OnlineModuleManager

Handles remote module installation, updates and module listing

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getModuleInfo() Returns an array of informations about a module humhub\modules\admin\libs\OnlineModuleManager
getModuleUpdates() humhub\modules\admin\libs\OnlineModuleManager
getModules() Returns an array of all available online modules humhub\modules\admin\libs\OnlineModuleManager
install() Installs latest compatible module version humhub\modules\admin\libs\OnlineModuleManager
update() Updates a given module humhub\modules\admin\libs\OnlineModuleManager

Method Details

getModuleInfo() public method

Returns an array of informations about a module

public void getModuleInfo ( $moduleId )
$moduleId
getModuleUpdates() public method

public void getModuleUpdates ( )
getModules() public method

Returns an array of all available online modules

Key is moduleId

  • name
  • description
  • latestVersion
  • latestCompatibleVersion
public Array getModules ( $cached true )
$cached
return Array

Of modulles

install() public method

Installs latest compatible module version

public void install ( $moduleId )
$moduleId \humhub\modules\admin\libs\type
update() public method

Updates a given module

public void update ( $moduleId )
$moduleId