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 Is the module enabled.

Methods

__construct(string $name, bool $is_active)

Class constructor.

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 56
__construct(string $name, bool $is_active)

Class constructor.

Parameters

string $name
bool $is_active

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

Get a list of all known modules.

Parameters

bool $fresh Force new results?

Return Value

array

at line 92
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