Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ConnectionManager

Открытые члены

 __construct ()
 
 getConnection (Role $owner, string $accountType, array $optionalFilter=[])
 
 getConnectionsData (Role $owner, array $type, array $optionalFilter=[])
 
 update (Connection $connection)
 
 initConnection (Role $owner, string $accountType, string $server)
 
 deactivateConnection (Connection $connection)
 
 unsubscribeConnection (Connection $connection)
 
 disableConnection (Connection $connection)
 

Открытые атрибуты

const INIT_STATUS
 

Защищенные члены

 createConnection (Role $owner, string $type, string $name, string $serverPath)
 
 getSocialUserLogin (Role $owner, string $accountType)
 

Подробное описание

См. определение в файле connectionmanager.php строка 29

Конструктор(ы)

◆ __construct()

__construct ( )

См. определение в файле connectionmanager.php строка 40

Методы

◆ createConnection()

createConnection ( Role $owner,
string $type,
string $name,
string $serverPath )
protected
Аргументы
Role$owner
string$type
string$name
string$serverPath
Возвращает
Connection
Исключения
ArgumentException
BaseException
ObjectPropertyException
SystemException

См. определение в файле connectionmanager.php строка 212

◆ deactivateConnection()

deactivateConnection ( Connection $connection)
Аргументы
Connection$connection
Возвращает
Result
Исключения
ArgumentException
LoaderException
ObjectPropertyException
SystemException
Exception

См. определение в файле connectionmanager.php строка 266

◆ disableConnection()

disableConnection ( Connection $connection)

См. определение в файле connectionmanager.php строка 342

◆ getConnection()

getConnection ( Role $owner,
string $accountType,
array $optionalFilter = [] )
Аргументы
Role$owner
string$accountType
array$optionalFilter
Возвращает
Connection|null
Исключения
ArgumentException
ObjectPropertyException
SystemException

См. определение в файле connectionmanager.php строка 56

◆ getConnectionsData()

getConnectionsData ( Role $owner,
array $type,
array $optionalFilter = [] )
Аргументы
Role$owner
array$type
array$optionalFilter
Возвращает
EO_DavConnection_Collection|null
Исключения
ArgumentException
ObjectPropertyException
SystemException

См. определение в файле connectionmanager.php строка 83

◆ getSocialUserLogin()

getSocialUserLogin ( Role $owner,
string $accountType )
protected
Аргументы
Role$owner
string$accountType
Возвращает
string
Исключения
ArgumentException
ObjectPropertyException
SystemException

См. определение в файле connectionmanager.php строка 244

◆ initConnection()

initConnection ( Role $owner,
string $accountType,
string $server )

Smart logic. If the connection already exists, activate it and return. Otherwise, create a new connection.

Аргументы
Role$owner
string$accountType
string$server
Возвращает
Result

См. определение в файле connectionmanager.php строка 154

◆ unsubscribeConnection()

unsubscribeConnection ( Connection $connection)
Аргументы
Connection$connection
Возвращает
void
Исключения
ArgumentException
ObjectPropertyException
SystemException
Exception

@TODO: move it into PushManager

См. определение в файле connectionmanager.php строка 321

◆ update()

update ( Connection $connection)
Аргументы
Connection$connection
Возвращает
Result

См. определение в файле connectionmanager.php строка 112

Данные класса

◆ INIT_STATUS

const INIT_STATUS
Инициализатор
= [
'existed' => 'existed',
'created' => 'created',
'activated' => 'activated',
]

См. определение в файле connectionmanager.php строка 31