mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
timeout exceptions, equivalences
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297199 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
587d8430eb
commit
f96b346ba5
5 changed files with 48 additions and 6 deletions
|
@ -36,6 +36,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$cursor = $collection->find()->limit(10);
|
||||
|
||||
// database has not yet been queried, so more search options can be added
|
||||
|
|
|
@ -14,9 +14,20 @@
|
|||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This equivalent to calling <function>MongoCursor::next</function>, then
|
||||
<function>MongoCursor::current</function>.
|
||||
This is identical to the function:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
public function getNext() {
|
||||
$this->next();
|
||||
return $this->current();
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
|
@ -34,7 +45,9 @@
|
|||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach the database.
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach
|
||||
the database and <classname>MongoCursorTimeoutException</classname> if the
|
||||
timeout is exceeded.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -30,7 +30,9 @@
|
|||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach the database.
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach
|
||||
the database and <classname>MongoCursorTimeoutException</classname> if the
|
||||
timeout is exceeded.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -26,11 +26,13 @@
|
|||
&null;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach the
|
||||
database.
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach the
|
||||
database and <classname>MongoCursorTimeoutException</classname> if the
|
||||
timeout is exceeded.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -13,6 +13,21 @@
|
|||
<modifier>public</modifier> <type>void</type><methodname>MongoCursor::rewind</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This is identical to the function:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
public function rewind() {
|
||||
$this->reset();
|
||||
$this->next();
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
|
@ -26,6 +41,15 @@
|
|||
&null;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
Throws <classname>MongoConnectionException</classname> if it cannot reach the
|
||||
database and <classname>MongoCursorTimeoutException</classname> if the
|
||||
timeout is exceeded.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue