Bristol SU Support Package
|
Public Member Functions | |
all () | |
get (int $id) | |
delete (int $id) | |
create (array $attributes) | |
update (int $id, array $attributes) | |
getAllForService (string $service) | |
getAllForConnector (string $alias) | |
Handle getting and creating connections (instances of a connector)
Definition at line 10 of file ConnectionRepository.php.
BristolSU\Support\Connection\Contracts\ConnectionRepository::all | ( | ) |
Return all connections
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::create | ( | array | $attributes | ) |
Create a connection
Attributes should contain [ 'name' => 'Connection Name', 'description' => 'Connection Description', 'alias' => 'connector_alias', 'settings' => [ 'api_key' => 'abc123', ... ] ] The settings are the settings specific to the connector being used.
array | $attributes | Attributes to make the connection |
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::delete | ( | int | $id | ) |
Delete a connection
int | $id | ID of the connection to delete |
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::get | ( | int | $id | ) |
Get a connection by ID
int | $id | ID of the connection |
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::getAllForConnector | ( | string | $alias | ) |
Get all connections for a specific connector
string | $alias | Connector to return connections for |
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::getAllForService | ( | string | $service | ) |
Get all connections for a service. These may be from multiple connectors.
string | $service | Service to get the connections for |
Implemented in BristolSU\Support\Connection\ConnectionRepository.
BristolSU\Support\Connection\Contracts\ConnectionRepository::update | ( | int | $id, |
array | $attributes | ||
) |
Update a connection
Attributes can contain [ 'name' => 'Connection Name', 'description' => 'Connection Description', 'alias' => 'connector_alias', 'settings' => [ 'api_key' => 'abc123', ... ] ]
int | $id | ID of the connection to update |
array | $attributes | Attributes to change |
Implemented in BristolSU\Support\Connection\ConnectionRepository.