1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс GoogleApiPush

Открытые статические члены

static renewWatchChannels ()
static checkSectionsPush ($localSections, $userId, $connectionId)
static createWatchChannels ($start=0)
static stopChannel (array $row=null, $ownerId=0)
static isConnectionError (string $lastResult=null)
static isAuthError (string $lastResult=null)
static isSyncTokenExpiresError (string $lastResult=null)
static isWrongChannel (string $error=null)
static clearPushChannels ()
static receivePushSignal ($channelId, $resourceId)
static processIncomingPush (string $entityType, int $entityId)
static processPush ()
static checkPushChannel (int $lastIdConnection=0)
static deletePushChannel (array $row)
static getConnectionPushByConnectionId (int $id)
static setBlockPush (string $type, int $entityId)
static setUnblockPush (string $type, int $entityId)
static setUnprocessedPush (string $type, int $entityId)
static getPush (string $type, int $entityId)

Поля данных

const TYPE_SECTION = 'SECTION'
const TYPE_CONNECTION = 'CONNECTION'

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

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

Методы

◆ checkPushChannel()

checkPushChannel ( int $lastIdConnection = 0)
static

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

◆ checkSectionsPush()

checkSectionsPush ( $localSections,
$userId,
$connectionId )
static

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

◆ clearPushChannels()

clearPushChannels ( )
static

Stop all push channels agent Recommended interval - 60 sec. Response from google not required

Возвращает
null|string

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

◆ createWatchChannels()

createWatchChannels ( $start = 0)
static

Creates and renew watch channels for connections Recommended interval = 1 hour, for push enable - recommended interval 3 minutes

Аргументы
int$start
Возвращает
string

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

◆ deletePushChannel()

deletePushChannel ( array $row)
static
Аргументы
array$row
Исключения

Exception

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

◆ getConnectionPushByConnectionId()

getConnectionPushByConnectionId ( int $id)
static
Аргументы
int$id
Возвращает
array|false
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getPush()

getPush ( string $type,
int $entityId )
static
Аргументы
string$type
int$entityId
Возвращает
array|null

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

◆ isAuthError()

isAuthError ( string $lastResult = null)
static

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

◆ isConnectionError()

isConnectionError ( string $lastResult = null)
static
Аргументы
string$lastResult
Возвращает
bool

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

◆ isSyncTokenExpiresError()

isSyncTokenExpiresError ( string $lastResult = null)
static

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

◆ isWrongChannel()

isWrongChannel ( string $error = null)
static
Аргументы
string$error
Возвращает
bool

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

◆ processIncomingPush()

processIncomingPush ( string $entityType,
int $entityId )
static

Handles incoming push for entity - runs synchronization for connection or for section

Аргументы
string$entityType
int$entityId
Возвращает
void

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

◆ processPush()

processPush ( )
static

Agent method. Does nothing, just for compatibility

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

◆ receivePushSignal()

receivePushSignal ( $channelId,
$resourceId )
static
Аргументы
$channelId
$resourceId
Возвращает
void

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

◆ renewWatchChannels()

renewWatchChannels ( )
static

Checks connection and ability to create push channel Recommended agent interval = 4h

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

◆ setBlockPush()

setBlockPush ( string $type,
int $entityId )
static
Аргументы
string$type
int$entityId

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

◆ setUnblockPush()

setUnblockPush ( string $type,
int $entityId )
static
Аргументы
string$type
int$entityId

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

◆ setUnprocessedPush()

setUnprocessedPush ( string $type,
int $entityId )
static
Аргументы
string$type
int$entityId

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

◆ stopChannel()

stopChannel ( array $row = null,
$ownerId = 0 )
static
Аргументы
array | null$row
int$ownerId
Исключения

Bitrix\Main\LoaderException

Исключения

CDavArgumentNullException

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

Поля

◆ TYPE_CONNECTION

const TYPE_CONNECTION = 'CONNECTION'

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

◆ TYPE_SECTION

const TYPE_SECTION = 'SECTION'

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


Объявления и описания членов класса находятся в файле: