svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ insert.xml

From: Date: Tue, 29 Sep 2009 21:25:48 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ insert.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5006@lists.php.net to get a copy of this message
kristina Tue, 29 Sep 2009 21:25:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288967 Log: safe insert Changed paths: U phpdoc/en/trunk/reference/mongo/mongocollection/insert.xml Modified: phpdoc/en/trunk/reference/mongo/mongocollection/insert.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/insert.xml 2009-09-29 21:16:57 UTC (rev 288966) +++ phpdoc/en/trunk/reference/mongo/mongocollection/insert.xml 2009-09-29 21:25:48 UTC (rev 288967) @@ -10,8 +10,9 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>boolean</type><methodname>MongoCollection::insert</methodname> + <modifier>public</modifier> <type>mixed</type><methodname>MongoCollection::insert</methodname> <methodparam><type>array</type><parameter>a</parameter></methodparam> + <methodparam choice="opt"><type>boolean</type><parameter>safe</parameter><initializer>false</initializer></methodparam> </methodsynopsis> </refsect1> @@ -29,6 +30,16 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term> + <parameter>safe</parameter> + </term> + <listitem> + <para> + If the database should check that the insert was successful. + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -36,17 +47,12 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns if the array was not empty (an empty array will not be inserted). + If <parameter>safe</parameter> was set, returns an array containing the status of the insert. + Otherwise, returns a boolean representing if the array was not empty (an empty array will not + be inserted). </para> </refsect1> - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns if the arrays were saved. - </para> - </refsect1> - <refsect1 role="examples"> &reftitle.examples; <example>

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