<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-cursor.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-cursor.rewind.php',
    1 => 'MongoDB\\Driver\\Cursor::rewind',
    2 => 'Rewind the cursor to the first result',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-cursor.php',
    1 => 'MongoDB\\Driver\\Cursor',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-cursor.next.php',
    1 => 'MongoDB\\Driver\\Cursor::next',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-cursor.settypemap.php',
    1 => 'MongoDB\\Driver\\Cursor::setTypeMap',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/cursor/rewind.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-cursor.rewind" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\Cursor::rewind</h1>
  <p class="verinfo">(mongodb &gt;=1.9.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\Cursor::rewind</span> &mdash; <span class="dc-title">Rewind the cursor to the first result</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-cursor.rewind-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\Cursor::rewind</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   If the cursor has advanced beyond its first position, it can no longer be
   rewound.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-cursor.rewind-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-cursor.rewind-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-cursor.rewind-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <ul class="simplelist">
   <li>Wirft eine <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span>, wenn beim Analysieren von Argumenten ein Fehler auftritt.</li><li>Wirft eine <span class="classname"><a href="class.mongodb-driver-exception-connectionexception.php" class="classname">MongoDB\Driver\Exception\ConnectionException</a></span>, wenn der Aufbau einer Verbindung zum Server fehlschlägt (aus einem anderen Grund als der Authentifizierung).</li><li>Wirft eine <span class="classname"><a href="class.mongodb-driver-exception-authenticationexception.php" class="classname">MongoDB\Driver\Exception\AuthenticationException</a></span>, wenn eine Authentifizierung erforderlich ist und fehlschlägt.</li>
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-logicexception.php" class="classname">MongoDB\Driver\Exception\LogicException</a></span> if this method is called after the cursor has advanced beyond its first position.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-cursor.rewind-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="iterator.rewind.php" class="methodname" rel="rdfs-seeAlso">Iterator::rewind()</a> - Setzt den Iterator auf das erste Element zur&uuml;ck</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>