System
class System
Class System
Methods
Starting from the processor as an array retrieve the processor as an object.
Execute checkConfig() on the payment processor Object.
Get payment processor by it's ID.
No description
Flush processors from static cache.
Sometimes we want to instantiate a processor object when no valid instance exists (eg. when uninstalling a processor).
Details
at line 24
static System
singleton()
at line 45
CRM_Core_Payment|NULL
getByProcessor(array $processor, bool $force = FALSE)
Starting from the processor as an array retrieve the processor as an object.
If there is no valid configuration it will not be retrieved.
at line 84
string|NULL
checkProcessorConfig(array $processor)
Execute checkConfig() on the payment processor Object.
This function creates a new instance of the processor object and returns the output of checkConfig
at line 111
CRM_Core_Payment|NULL
getById(int $id)
Get payment processor by it's ID.
at line 126
CRM_Core_Payment|NULL
getByName(string $name, bool $is_test)
at line 136
flushProcessors()
Flush processors from static cache.
This is particularly used for tests.
at line 159
CRM_Core_Payment|NULL
getByClass(string $className)
Sometimes we want to instantiate a processor object when no valid instance exists (eg. when uninstalling a processor).
This function does not load instance specific details for the processor.