svn: /phpdoc/en/trunk/reference/mongo/mongowritebatch/ add.xml

From: Date: Fri, 14 Mar 2014 21:52:48 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/mongowritebatch/ add.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12230@lists.php.net to get a copy of this message
bjori Fri, 14 Mar 2014 21:52:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333000 Log: Remove extra > in the link, improve example and remove empty output Changed paths: U phpdoc/en/trunk/reference/mongo/mongowritebatch/add.xml Modified: phpdoc/en/trunk/reference/mongo/mongowritebatch/add.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongowritebatch/add.xml 2014-03-14 21:52:14 UTC (rev 332999) +++ phpdoc/en/trunk/reference/mongo/mongowritebatch/add.xml 2014-03-14 21:52:48 UTC (rev 333000) @@ -17,7 +17,7 @@ The operation to add to the batch. </para> <para> - If <parameter>$item</parameter> causes the batch to hit the <link xlink:href="url.mongodb.dochub.maxWriteBatchSize">>maxWriteBatchSize</link> + If <parameter>$item</parameter> causes the batch to hit the <link xlink:href="url.mongodb.dochub.maxWriteBatchSize">maxWriteBatchSize</link> or <link xlink:href="url.mongodb.dochub.maxBsonObjectSize">maxBsonObjectSize</link> limits, a new batch will be created internally and the batches batched up and sent one at a time upon calling <methodname>MongoWriteBatch::execute</methodname>. </para> @@ -160,22 +160,23 @@ $collection = $mc->selectCollection("test", "test"); -$item = array( +$item1 = array( "q" => array("my" => "demo"), "limit" => 1, ); +$item2 = array( + "q" => array("try" => 3), + "limit" => 1, +); + $batch = new MongoDeleteBatch($collection); -$batch->add($item); +$batch->add($item1); +$batch->add($item2); $batch->execute(array("w" => 1)); ?> ]]> </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -]]> - </screen> </example> </refsect1>

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