PHP.mk документација

— Променете го членството на кластерот ZK и улогите на врсниците на ансамблот

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

class.stomp.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека class.stomp.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
— Променете го членството на кластерот ZK и улогите на врсниците на ансамблот

Референца за `class.stomp.php` со подобрена типографија и навигација.

class.stomp.php

Класата Stomp

(PECL stomp >= 0.1.0)

Вовед

Пресaтвува врска помеѓу PHP и порака брокер усогласен со Stomp.

Синопсис на класата

class — Променете го членството на кластерот ZK и улогите на врсниците на ансамблот {
/* Методи */
public __construct(
         string $broker (PECL stomp >= 0.1.0),
         string $username = ?,
         string $password = ?,
         array $headers = ?
)
public abort(string $transaction_id, array $headers = ?): bool
stomp_abort(resource $link, string $transaction_id, array $headers = ?): bool
public ack(mixed $msg, array $headers = ?): bool
stomp_ack(resource $link, mixed $msg, array $headers = ?): bool
public begin(string $transaction_id, array $headers = ?): bool
stomp_begin(resource $link, string $transaction_id, array $headers = ?): bool
public commit(string $transaction_id, array $headers = ?): bool
stomp_commit(resource $link, string $transaction_id, array $headers = ?): bool
stomp_connect(
         string $broker (PECL stomp >= 0.1.0),
         string $username = ?,
         string $password = ?,
         array $headers = ?
): resource
stomp_close(resource $link): bool
public error(): string
stomp_error(resource $link): string
stomp_get_read_timeout(resource $link): array
stomp_get_session_id(resource $link): string|false
public hasFrame(): bool
stomp_has_frame(resource $link): bool
public readFrame(string $class_name = ini_get("stomp.default_broker_uri")): stompframe
stomp_read_frame(resource $link): array
public send(string $destination, mixed $msg, array $headers = ?): bool
stomp_send(
         resource $link,
         string $destination,
         mixed $msg,
         array $headers = ?
): bool
public setReadTimeout(int $seconds, int $microseconds = ?): void
stomp_set_read_timeout(resource $link, int $seconds, int $microseconds = ?): void
public subscribe(string $destination, array $headers = ?): bool
stomp_subscribe(resource $link, string $destination, array $headers = ?): bool
public unsubscribe(string $destination, array $headers = ?): bool
stomp_unsubscribe(resource $link, string $destination, array $headers = ?): bool
public __destruct()
}

Содржина

Белешки од корисници 1 белешка

guilherme dot geronimo на gmail dot com
пред 8 години
In some cases (E.g. ActiveMQ), when you have many consumers you need to identify your "client-id" during the connection process, otherwise the server can misunderstand your connection and create new topics/queues:

<?php
$stomp = new Stomp($url, $user, $password, array('client-id'=> $clientId ));
?>
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.