method
public
static
GoogleApiPush::checkSectionsPush()
Сигнатура
public static checkSectionsPush(mixed $localSections, mixed $userId, mixed $connectionId) : mixed
Параметры
$localSections
mixed
$userId
mixed
$connectionId
mixed
Возвращаемое значение
mixed
Как применяется в GoogleApiPush
GoogleApiPush::checkSectionsPush() — метод класса \Bitrix\Calendar\Sync\GoogleApiPush модуля «Календарь».
Статический метод — вызывается через имя класса GoogleApiPush, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Calendar\Sync\GoogleApiPush;
Loader::includeModule('calendar');
$localSections = null;
$userId = null;
$connectionId = null;
$result = GoogleApiPush::checkSectionsPush($localSections, $userId, $connectionId);
// $result: mixedДругие методы GoogleApiPush
checkPushChannel()clearPushChannels()Агент остановки всех push-каналов. Рекомендуемый интервал — 60 сек. Ответ от Google не требуетсяcreateWatchChannels()Создаёт и обновляет каналы наблюдения для подключений. Рекомендуемый интервал = 1 час, при включённом…deletePushChannel()getConnectionPushByConnectionId()getPush()isAuthError()isConnectionError()isSyncTokenExpiresError()isWrongChannel()processIncomingPush()Обрабатывает входящий push для сущности — запускает синхронизацию подключения или разделаprocessPush()Метод агента. Ничего не делает, только для совместимости
Исходный файл: source/calendar/lib/sync/googleapipush.php:157

