Integrations
extends Instanceable
in package
Integrations class.
Tags
Table of Contents
Properties
- $_instances : array<class-string, static>
- Stores instances of classes with their class name as key.
- $_integrations : array<string|int, IntegrationBase>
Methods
- getAll() : array<string|int, IntegrationBase>
- List all integrations, sorted by their order.
- getEnabledIntegrations() : array<string|int, IntegrationBase>
- List all enabled integrations, sorted by their order.
- getInstance() : static
- Get or make an instance of the class this was called on.
- getIntegration() : IntegrationBase|null
- Get a integration by name.
- registerIntegration() : void
- Register an integration to the integration list.
Properties
$_instances
Stores instances of classes with their class name as key.
private
static array<class-string, static>
$_instances
= []
$_integrations
private
array<string|int, IntegrationBase>
$_integrations
= []
The array of integrations
Methods
getAll()
List all integrations, sorted by their order.
public
getAll() : array<string|int, IntegrationBase>
Return values
array<string|int, IntegrationBase> —List of integrations.
getEnabledIntegrations()
List all enabled integrations, sorted by their order.
public
getEnabledIntegrations() : array<string|int, IntegrationBase>
Return values
array<string|int, IntegrationBase> —List of integrations.
getInstance()
Get or make an instance of the class this was called on.
public
final static getInstance() : static
Return values
static —Instance of the class this was called on.
getIntegration()
Get a integration by name.
public
getIntegration(string $name) : IntegrationBase|null
Parameters
- $name : string
-
Name of integration to get.
Return values
IntegrationBase|null —Instance of integration with same name, null if it doesnt exist.
registerIntegration()
Register an integration to the integration list.
public
registerIntegration(IntegrationBase $integration) : void
Parameters
- $integration : IntegrationBase
-
Instance of intagration to register.