minor fixes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@281673 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kristina Chodorow 2009-06-04 19:49:08 +00:00
parent 271e5ed149
commit 98f35b218a
2 changed files with 18 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<chapter xml:id="mongo.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.examples;
@ -20,7 +20,7 @@ include "mongo.php";
$m = new Mongo();
// select a database
$db = $m->selectDatabase("comedy");
$db = $m->selectDB("comedy");
$collection = $db->selectCollection("cartoons");
// add an element

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<refentry xml:id="mongodate.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
@ -11,10 +11,11 @@
&reftitle.description;
<methodsynopsis>
<methodname>MongoDate::__construct</methodname>
<methodparam choice="opt"><type>long</type><parameter>secs</parameter></methodparam>
<methodparam choice="opt"><type>long</type><parameter>sec</parameter></methodparam>
<methodparam choice="opt"><type>long</type><parameter>usec</parameter></methodparam>
</methodsynopsis>
<para>
Creates a new date. If no parameter is given, the current time is used.
Creates a new date. If no parameters are given, the current time is used.
</para>
</refsect1>
@ -24,7 +25,7 @@
<variablelist>
<varlistentry>
<term>
<parameter>secs</parameter>
<parameter>sec</parameter>
</term>
<listitem>
<para>
@ -32,6 +33,16 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>usec</parameter>
</term>
<listitem>
<para>
Microseconds.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
@ -39,7 +50,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the new date.
Returns this new date.
</para>
</refsect1>