cvs: phpdoc /en/reference/mongo examples.xml mongodate.xml /en/reference/mongo/mongodb command.xml /en/reference/mongo/mongoutil dbcommand.xml

From: Date: Fri, 29 May 2009 20:03:49 +0000
Subject: cvs: phpdoc /en/reference/mongo examples.xml mongodate.xml /en/reference/mongo/mongodb command.xml /en/reference/mongo/mongoutil dbcommand.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4087@lists.php.net to get a copy of this message
kristina Fri May 29 20:03:49 2009 UTC Added files: /phpdoc/en/reference/mongo/mongodb command.xml Removed files: /phpdoc/en/reference/mongo/mongoutil dbcommand.xml Modified files: /phpdoc/en/reference/mongo examples.xml mongodate.xml Log: DB::command and date fields http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/examples.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/mongo/examples.xml diff -u phpdoc/en/reference/mongo/examples.xml:1.3 phpdoc/en/reference/mongo/examples.xml:1.4 --- phpdoc/en/reference/mongo/examples.xml:1.3 Wed Feb 25 22:33:54 2009 +++ phpdoc/en/reference/mongo/examples.xml Fri May 29 20:03:49 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <chapter xml:id="mongo.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; @@ -35,9 +35,8 @@ $cursor = $collection->find(); // iterate through the results -while( $cursor->hasNext() ) { - $c = $cursor->next(); - echo $c["title"] . "\n"; +foreach ($cursor as $obj) { + echo $obj["title"] . "\n"; } // disconnect http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongodate.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongodate.xml diff -u phpdoc/en/reference/mongo/mongodate.xml:1.1 phpdoc/en/reference/mongo/mongodate.xml:1.2 --- phpdoc/en/reference/mongo/mongodate.xml:1.1 Tue Mar 24 18:46:00 2009 +++ phpdoc/en/reference/mongo/mongodate.xml Fri May 29 20:03:49 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <phpdoc:classref xml:id="class.mongodate" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -14,6 +14,9 @@ <para> Represent date objects for the database. </para> + <para> + Includes second (sec) and microsecond (usec) fields. + </para> </section> <!-- }}} --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongodb/command.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/mongo/mongodb/command.xml +++ phpdoc/en/reference/mongo/mongodb/command.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="mongodb.command" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoDB::command</refname> <refpurpose>Execute a database command</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>array</type><methodname>MongoDB::command</methodname> <methodparam><type>array</type><parameter>data</parameter></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>data</parameter> </term> <listitem> <para> The query to send. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns database response. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

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