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:
Kristina Chodorow 2010-03-30 20:05:30 +00:00
parent 587d8430eb
commit f96b346ba5
5 changed files with 48 additions and 6 deletions

View file

@ -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

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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: