ConnectionManager
Table of Contents
Constants
- INIT_STATUS = ['existed' => 'existed', 'created' => 'created', 'activated' => 'activated']
Methods
- __construct() : mixed
- deactivateConnection() : Result
- deactivateConnections() : void
- disableConnection() : mixed
- getConnection() : Connection|null
- getConnectionsData() : EO_DavConnection_Collection|null
- initConnection() : Result
- Smart logic. If the connection already exists, activate it and return. Otherwise, create a new connection.
- unsubscribeConnection() : void
- update() : Result
Constants
INIT_STATUS
public
mixed
INIT_STATUS
= ['existed' => 'existed', 'created' => 'created', 'activated' => 'activated']
Methods
__construct()
public
__construct() : mixed
deactivateConnection()
public
deactivateConnection(Connection $connection) : Result
Parameters
- $connection : Connection
Tags
Return values
ResultdeactivateConnections()
public
deactivateConnections(EO_DavConnection_Collection|null $connections) : void
Parameters
- $connections : EO_DavConnection_Collection|null
disableConnection()
public
disableConnection(Connection $connection) : mixed
Parameters
- $connection : Connection
getConnection()
public
getConnection(Role $owner, string $accountType[, array<string|int, mixed> $optionalFilter = [] ]) : Connection|null
Parameters
- $owner : Role
- $accountType : string
- $optionalFilter : array<string|int, mixed> = []
Tags
Return values
Connection|nullgetConnectionsData()
public
getConnectionsData(Role $owner, array<string|int, mixed> $type[, array<string|int, mixed> $optionalFilter = [] ]) : EO_DavConnection_Collection|null
Parameters
- $owner : Role
- $type : array<string|int, mixed>
- $optionalFilter : array<string|int, mixed> = []
Tags
Return values
EO_DavConnection_Collection|nullinitConnection()
Smart logic. If the connection already exists, activate it and return. Otherwise, create a new connection.
public
initConnection(Role $owner, string $accountType, string $server) : Result
Parameters
- $owner : Role
- $accountType : string
- $server : string
Return values
ResultunsubscribeConnection()
public
unsubscribeConnection(Connection $connection) : void
Parameters
- $connection : Connection
Tags
update()
public
update(Connection $connection) : Result
Parameters
- $connection : Connection