svn: /phpdoc/en/trunk/reference/mongo/mongocursor/ hint.xml
| From: | Jeremy Mikola | Date: | Thu, 02 May 2013 18:41:57 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/mongocursor/ hint.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11224@lists.php.net to get a copy of this message | ||
jmikola Thu, 02 May 2013 18:41:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330170
Log:
MongoCursor::hint() supports string arguments
https://jira.mongodb.org/browse/PHP-775
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongocursor/hint.xml
Modified: phpdoc/en/trunk/reference/mongo/mongocursor/hint.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocursor/hint.xml 2013-05-01 20:14:18 UTC (rev 330169)
+++ phpdoc/en/trunk/reference/mongo/mongocursor/hint.xml 2013-05-02 18:41:57 UTC (rev 330170)
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier>
<type>MongoCursor</type><methodname>MongoCursor::hint</methodname>
-
<methodparam><type>array</type><parameter>key_pattern</parameter></methodparam>
+
<methodparam><type>mixed</type><parameter>index</parameter></methodparam>
</methodsynopsis>
</refsect1>
@@ -21,11 +21,14 @@
<variablelist>
<varlistentry>
<term>
- <parameter>key_pattern</parameter>
+ <parameter>index</parameter>
</term>
<listitem>
<para>
- Indexes to use for the query.
+ Index to use for the query. If a string is passed, it should correspond
+ to an index name. If an array or object is passed, it should correspond
+ to the specification used to create the index (i.e. the first argument
+ to <function>MongoCollection::ensureIndex</function>).
</para>
</listitem>
</varlistentry>
@@ -46,6 +49,34 @@
Throws <classname>MongoCursorException</classname> if this cursor has started
iterating.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>1.4.0</entry>
+ <entry>
+ <para>
+ The <parameter>index</parameter> argument now supports index names as
+ string values. In versions before 1.4.0, only array or object values
+ were accepted.
+ </para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: