Bitrix API

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

deactivateConnection()

public deactivateConnection(Connection $connection) : Result
Parameters
$connection : Connection
Tags
throws
ArgumentException
throws
LoaderException
throws
ObjectPropertyException
throws
SystemException
throws
Exception
Return values
Result

deactivateConnections()

public deactivateConnections(EO_DavConnection_Collection|null $connections) : void
Parameters
$connections : EO_DavConnection_Collection|null

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
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Connection|null

getConnectionsData()

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
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
EO_DavConnection_Collection|null

initConnection()

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
Result

unsubscribeConnection()

public unsubscribeConnection(Connection $connection) : void
Parameters
$connection : Connection
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
throws
Exception
TODO:

move it into PushManager


        
On this page

Search results