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

