interface CRM_Extension_Manager_Interface

The extension manager handles installing, disabling enabling, and uninstalling extensions.

Methods

onPreInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (before marking the extension as installed or clearing the caches).

onPostInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (after marking the extension as installed but before clearing the caches).

onPostPostInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (after marking the extension as installed and clearing the caches).

onPreEnable(CRM_Extension_Info $info)

No description

onPostEnable(CRM_Extension_Info $info)

No description

onPreDisable(CRM_Extension_Info $info)

Perform type-specific removal logic (before updating the extension row in the "civicrm_extension" table).

onPostDisable(CRM_Extension_Info $info)

Perform type-specific removal logic (after updating the extension row in the "civicrm_extension" table).

onPreUninstall(CRM_Extension_Info $info)

Perform type-specific removal logic (before removing the extension row in the "civicrm_extension" table).

onPostUninstall(CRM_Extension_Info $info)

Perform type-specific removal logic (after removing the extension row in the "civicrm_extension" table).

onPreReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo)

No description

onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo)

No description

Details

at line 43
onPreInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (before marking the extension as installed or clearing the caches).

Parameters

CRM_Extension_Info $info

at line 51
onPostInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (after marking the extension as installed but before clearing the caches).

Parameters

CRM_Extension_Info $info

at line 59
onPostPostInstall(CRM_Extension_Info $info)

Perform type-specific installation logic (after marking the extension as installed and clearing the caches).

Parameters

CRM_Extension_Info $info

at line 64
onPreEnable(CRM_Extension_Info $info)

Parameters

CRM_Extension_Info $info

at line 69
onPostEnable(CRM_Extension_Info $info)

Parameters

CRM_Extension_Info $info

at line 79
onPreDisable(CRM_Extension_Info $info)

Perform type-specific removal logic (before updating the extension row in the "civicrm_extension" table).

Parameters

CRM_Extension_Info $info May be generated from xml or DB (which is lossy).

See also

CRM_Extension_Manager::createInfoFromDB

at line 89
onPostDisable(CRM_Extension_Info $info)

Perform type-specific removal logic (after updating the extension row in the "civicrm_extension" table).

Parameters

CRM_Extension_Info $info May be generated from xml or DB (which is lossy).

See also

CRM_Extension_Manager::createInfoFromDB

at line 99
onPreUninstall(CRM_Extension_Info $info)

Perform type-specific removal logic (before removing the extension row in the "civicrm_extension" table).

Parameters

CRM_Extension_Info $info May be generated from xml or DB (which is lossy).

See also

CRM_Extension_Manager::createInfoFromDB

at line 109
onPostUninstall(CRM_Extension_Info $info)

Perform type-specific removal logic (after removing the extension row in the "civicrm_extension" table).

Parameters

CRM_Extension_Info $info May be generated from xml or DB (which is lossy).

See also

CRM_Extension_Manager::createInfoFromDB

at line 115
onPreReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo)

Parameters

CRM_Extension_Info $oldInfo
CRM_Extension_Info $newInfo

at line 121
onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo)

Parameters

CRM_Extension_Info $oldInfo
CRM_Extension_Info $newInfo