Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс 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 строка 12

Методы

◆ checkPushChannel()

static checkPushChannel ( int  $lastIdConnection = 0)
static

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

◆ checkSectionsPush()

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

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

◆ clearPushChannels()

static clearPushChannels ( )
static

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

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

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

◆ createWatchChannels()

static 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 строка 229

◆ deletePushChannel()

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

Exception

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

◆ getConnectionPushByConnectionId()

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

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getPush()

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

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

◆ isAuthError()

static isAuthError ( string  $lastResult = null)
static

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

◆ isConnectionError()

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

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

◆ isSyncTokenExpiresError()

static isSyncTokenExpiresError ( string  $lastResult = null)
static

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

◆ isWrongChannel()

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

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

◆ processIncomingPush()

static 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 строка 474

◆ processPush()

static processPush ( )
static

Agent method. Does nothing, just for compatibility

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

◆ receivePushSignal()

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

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

◆ renewWatchChannels()

static renewWatchChannels ( )
static

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

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

◆ setBlockPush()

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

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

◆ setUnblockPush()

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

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

◆ setUnprocessedPush()

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

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

◆ stopChannel()

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

Bitrix\Main\LoaderException

Исключения

CDavArgumentNullException

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

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

◆ TYPE_CONNECTION

const TYPE_CONNECTION = 'CONNECTION'

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

◆ TYPE_SECTION

const TYPE_SECTION = 'SECTION'

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