class CRM_Core_Module

A module is any software package that participates in the hook system, such as CiviCRM Module-Extension, a Drupal Module, or a Joomla Plugin.

Properties

string $name
bool, $is_active

Methods

__construct(string $name, $is_active)

No description

static array
getAll(bool $fresh = FALSE)

Get a list of all known modules.

static array
collectStatuses(array $modules)

Get the status for each module.

Details

at line 54
__construct(string $name, $is_active)

Parameters

string $name
$is_active

at line 67
static array getAll(bool $fresh = FALSE)

Get a list of all known modules.

Parameters

bool $fresh Force new results?

Return Value

array

at line 89
static array collectStatuses(array $modules)

Get the status for each module.

Parameters

array $modules Array(CRM_Core_Module).

Return Value

array Array(string $moduleName => string $statusCode).

See also

CRM_Extension_Manager::STATUS_INSTALLED
CRM_Extension_Manager::STATUS_DISABLED