svn: /phpdoc/en/trunk/reference/amqp/ amqpexchange/declare.xml amqpexchange/delete.xml amqpqueue/consume.xml

From: Date: Sat, 18 Dec 2010 17:07:41 +0000
Subject: svn: /phpdoc/en/trunk/reference/amqp/ amqpexchange/declare.xml amqpexchange/delete.xml amqpqueue/consume.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7541@lists.php.net to get a copy of this message
brodriguez Sat, 18 Dec 2010 17:07:41 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306437 Log: updating function examples to include new required connect() method Changed paths: UU phpdoc/en/trunk/reference/amqp/amqpexchange/declare.xml UU phpdoc/en/trunk/reference/amqp/amqpexchange/delete.xml UU phpdoc/en/trunk/reference/amqp/amqpqueue/consume.xml Modified: phpdoc/en/trunk/reference/amqp/amqpexchange/declare.xml =================================================================== --- phpdoc/en/trunk/reference/amqp/amqpexchange/declare.xml 2010-12-18 17:02:05 UTC (rev 306436) +++ phpdoc/en/trunk/reference/amqp/amqpexchange/declare.xml 2010-12-18 17:07:41 UTC (rev 306437) @@ -76,6 +76,7 @@ /* Create a new connection */ $cnn = new AMQPConnection(); +$cnn->connect(); $ex = new AMQPExchange($cnn); $ex->declare('new_topic_exchange', AMQP_DURABLE | AMQP_AUTODELETE); Property changes on: phpdoc/en/trunk/reference/amqp/amqpexchange/declare.xml ___________________________________________________________________ Added: svn:eol-style + native Modified: phpdoc/en/trunk/reference/amqp/amqpexchange/delete.xml =================================================================== --- phpdoc/en/trunk/reference/amqp/amqpexchange/delete.xml 2010-12-18 17:02:05 UTC (rev 306436) +++ phpdoc/en/trunk/reference/amqp/amqpexchange/delete.xml 2010-12-18 17:07:41 UTC (rev 306437) @@ -57,6 +57,7 @@ /* Create a new connection */ $cnn = new AMQPConnection(); +$cnn->connect(); /* Create a new exchange */ $ex = new AMQPExchange($cnn); Property changes on: phpdoc/en/trunk/reference/amqp/amqpexchange/delete.xml ___________________________________________________________________ Added: svn:eol-style + native Modified: phpdoc/en/trunk/reference/amqp/amqpqueue/consume.xml =================================================================== --- phpdoc/en/trunk/reference/amqp/amqpqueue/consume.xml 2010-12-18 17:02:05 UTC (rev 306436) +++ phpdoc/en/trunk/reference/amqp/amqpqueue/consume.xml 2010-12-18 17:07:41 UTC (rev 306437) @@ -29,9 +29,9 @@ <term><parameter>options</parameter></term> <listitem> <para> - <parameter>options</parameter> is a an array of consume options. The keys used in the <parameter>options</parameter> array are: min, max, and ack. All other keys will be ignored. + <parameter>options</parameter> is a an array of consume options. The keys used in the <parameter>options</parameter> array are: min, max, and ack. All other keys will be ignored. </para> - <para> + <para> For each missing option, the extension will check the ini settings or use the default value. </para> </listitem> @@ -43,7 +43,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - An array contained a the messages consumed. The number of returned messages will be at least the number given by <parameter>min</parameter> in the <parameter>options</parameter> array. But not more than the number given by <parameter>max</parameter>. + An array contained a the messages consumed. The number of returned messages will be at least the number given by <parameter>min</parameter> in the <parameter>options</parameter> array. But not more than the number given by <parameter>max</parameter>. </para> </refsect1> @@ -58,6 +58,7 @@ /* Create a connection using all default credentials: */ $connection = new AMQPConnection(); +$connection->connect(); /* create a queue object */ $queue = new AMQPQueue($connection); @@ -66,9 +67,9 @@ $queue->declare('myqueue'); $options = array( - 'min' => 1, - 'max' => 10, - 'ack' => true + 'min' => 1, + 'max' => 10, + 'ack' => true ); //get the messages Property changes on: phpdoc/en/trunk/reference/amqp/amqpqueue/consume.xml ___________________________________________________________________ Added: svn:eol-style + native

« previous php.doc.cvs (#7541) next »