CRM_Extension_Manager_Payment
extends CRM_Extension_Manager_Base
in package
This class stores logic for managing CiviCRM extensions.
Tags
Table of Contents
Properties
- $autoReplace : bool
- Whether to automatically uninstall and install during 'replace'.
- $mapper : CRM_Extension_Mapper
Methods
- __construct() : mixed
- onPostDisable() : mixed
- Perform type-specific removal logic (after updating the extension row in the "civicrm_extension" table).
- onPostEnable() : mixed
- onPostInstall() : mixed
- Perform type-specific installation logic (after marking the extension as installed but before clearing the caches).
- onPostPostInstall() : mixed
- Perform type-specific installation logic (after marking the extension as installed and clearing the caches).
- onPostReplace() : mixed
- onPostUninstall() : mixed
- Perform type-specific removal logic (after removing the extension row in the "civicrm_extension" table).
- onPreDisable() : mixed
- Perform type-specific removal logic (before updating the extension row in the "civicrm_extension" table).
- onPreEnable() : mixed
- onPreInstall() : mixed
- Perform type-specific installation logic (before marking the extension as installed or clearing the caches).
- onPreReplace() : mixed
- onPreUninstall() : mixed
- Perform type-specific removal logic (before removing the extension row in the "civicrm_extension" table).
- _getAllPaymentProcessorTypes() : array<string|int, mixed>
- _runPaymentHook() : mixed
- Run hooks in the payment processor class.
Properties
$autoReplace
Whether to automatically uninstall and install during 'replace'.
public
bool
$autoReplace
$mapper
protected
CRM_Extension_Mapper
$mapper
Methods
__construct()
public
__construct(CRM_Extension_Mapper $mapper) : mixed
Parameters
- $mapper : CRM_Extension_Mapper
onPostDisable()
Perform type-specific removal logic (after updating the extension row in the "civicrm_extension" table).
public
onPostDisable(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPostEnable()
public
onPostEnable(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPostInstall()
Perform type-specific installation logic (after marking the extension as installed but before clearing the caches).
public
onPostInstall(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPostPostInstall()
Perform type-specific installation logic (after marking the extension as installed and clearing the caches).
public
onPostPostInstall(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPostReplace()
public
onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo) : mixed
Parameters
- $oldInfo : CRM_Extension_Info
- $newInfo : CRM_Extension_Info
Tags
onPostUninstall()
Perform type-specific removal logic (after removing the extension row in the "civicrm_extension" table).
public
onPostUninstall(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPreDisable()
Perform type-specific removal logic (before updating the extension row in the "civicrm_extension" table).
public
onPreDisable(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPreEnable()
public
onPreEnable(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPreInstall()
Perform type-specific installation logic (before marking the extension as installed or clearing the caches).
public
onPreInstall(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
onPreReplace()
public
onPreReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo) : mixed
Parameters
- $oldInfo : CRM_Extension_Info
- $newInfo : CRM_Extension_Info
Tags
onPreUninstall()
Perform type-specific removal logic (before removing the extension row in the "civicrm_extension" table).
public
onPreUninstall(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
Tags
_getAllPaymentProcessorTypes()
private
_getAllPaymentProcessorTypes(string $attr) : array<string|int, mixed>
Parameters
- $attr : string
-
The attribute used to key the array.
Return values
array<string|int, mixed> —($attr => $id)
_runPaymentHook()
Run hooks in the payment processor class.
private
_runPaymentHook(CRM_Extension_Info $info, string $method) : mixed
Load requested payment processor and call the method specified.
Parameters
- $info : CRM_Extension_Info
- $method : string
-
The method to call in the payment processor class.