downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AMQPConnection::setPassword> <AMQPConnection::setHost
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPConnection::setLogin

(PECL amqp >= Unknown)

AMQPConnection::setLoginログイン文字列を設定する

説明

public bool AMQPConnection::setLogin ( string $login )

このメソッドは、AMQP ブローカへの接続に使うログイン文字列を設定します。

パラメータ

login

AMQP ブローカの認証に使うログイン文字列。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

エラー / 例外

login が 32 文字より長い場合に AMQPConnectionException をスローします。

例1 AMQPConnection::setLogin() の例

<?php

/* 新しい接続を作成します */
$cnn = new AMQPConnection();

// ログイン文字列を設定します
$cnn->setLogin('myusername');

?>



add a note add a note User Contributed Notes AMQPConnection::setLogin - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites