diff --git a/reference/amqp/amqpconnection/setvhost.xml b/reference/amqp/amqpconnection/setvhost.xml new file mode 100644 index 0000000000..2bba64a876 --- /dev/null +++ b/reference/amqp/amqpconnection/setvhost.xml @@ -0,0 +1,96 @@ + + + + + + AMQPConnection::setVhost + Set the amqp virtual host + + + + &reftitle.description; + + public voidAMQPConnection::setVhost + stringvhost + + + Sets the virtual host to which to connect on the AMQP broker. + + + + + &reftitle.parameters; + + + + host + + + The virtual host to use on the AMQP broker. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.errors; + + Throws an AMQPConnectionException if + host is longer then 32characters. + + + + + &reftitle.examples; + + + <function>AMQPConnection::setVhost</function> example + +setVhost('myvhost'); + +?> +]]> + + + + + + + + +