<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mongodb.mongodb.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'class.mongodb-driver-cursorinterface.php',
    1 => 'MongoDB\\Driver\\CursorInterface',
    2 => 'L\'interface MongoDB\\Driver\\CursorInterface',
  ),
  'up' => 
  array (
    0 => 'mongodb.mongodb.php',
    1 => 'MongoDB\\Driver',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-cursorid.tostring.php',
    1 => 'MongoDB\\Driver\\CursorId::__toString',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-cursorinterface.getid.php',
    1 => 'MongoDB\\Driver\\CursorInterface::getId',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mongodb/mongodb/driver/cursorinterface.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.mongodb-driver-cursorinterface.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.mongodb-driver-cursorinterface" class="reference">
 <h1 class="title">L&#039;interface MongoDB\Driver\CursorInterface</h1>
 

 <div class="partintro"><p class="verinfo">(mongodb &gt;=1.6.0)</p>

  
  <div class="section" id="mongodb-driver-cursorinterface.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Cette interface est implémentée par
    <span class="classname"><a href="class.mongodb-driver-cursor.php" class="classname">MongoDB\Driver\Cursor</a></span> pour être utilisée comme
    type de paramètre, de retour ou de propriété dans les classes utilisateur.
   </p>
  </div>


  <div class="section" id="mongodb-driver-cursorinterface.synopsis">
   <h2 class="title">Synopsis de la classe</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">MongoDB\Driver\CursorInterface</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.iterator.php" class="interfacename">Iterator</a></span> {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Méthodes */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-cursorinterface.getid.php" class="methodname">getId</a></span>(): <span class="type"><a href="class.mongodb-bson-int64.php" class="type MongoDB\BSON\Int64">MongoDB\BSON\Int64</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-cursorinterface.getserver.php" class="methodname">getServer</a></span>(): <span class="type"><a href="class.mongodb-driver-server.php" class="type MongoDB\Driver\Server">MongoDB\Driver\Server</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-cursorinterface.isdead.php" class="methodname">isDead</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-cursorinterface.settypemap.php" class="methodname">setTypeMap</a></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$typemap</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-driver-cursorinterface.toarray.php" class="methodname">toArray</a></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

   }</div>


  </div>

  <div class="section">
   <h2 class="title">Historique</h2>
   <p class="para">
    <table class="doctable informaltable">
     
      <thead>
       <tr>
        <th>Version</th>
        <th>Description</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>PECL mongodb 2.0.0</td>
        <td>
         <p class="para">
          Cette interface étend désormais <span class="interfacename"><a href="class.iterator.php" class="interfacename">Iterator</a></span>.
         </p>
         <p class="para">
          Les types de retour précédemment déclarés comme étant tentatifs sont désormais appliqués.
         </p>
        </td>
       </tr>

       
<tr>
  <td>PECL mongodb 1.15.0</td>
  <td>
    Les types de retours des méthodes sont déclarés comme provisoires en PHP 8.0 et ultérieur,
    ce qui déclenche des avis de dépréciation dans le code qui implémente cette interface sans déclarer
    les types de retours appropriés.
    L&#039;attribut <code class="code">#[ReturnTypeWillChange]</code> peut être ajouté
    pour ignorer la notice de dépréciation.
  </td>
</tr>


      </tbody>
     
    </table>

   </p>
  </div>

 </div>

 



































<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="mongodb-driver-cursorinterface.getid.php">MongoDB\Driver\CursorInterface::getId</a> — Renvoie l'ID du curseur</li><li><a href="mongodb-driver-cursorinterface.getserver.php">MongoDB\Driver\CursorInterface::getServer</a> — Renvoie le serveur associ&eacute; &agrave; ce curseur</li><li><a href="mongodb-driver-cursorinterface.isdead.php">MongoDB\Driver\CursorInterface::isDead</a> — Renvoie si le curseur peut avoir des r&eacute;sultats suppl&eacute;mentaires</li><li><a href="mongodb-driver-cursorinterface.settypemap.php">MongoDB\Driver\CursorInterface::setTypeMap</a> — D&eacute;finit une carte de type &agrave; utiliser pour la d&eacute;s&eacute;rialisation BSON</li><li><a href="mongodb-driver-cursorinterface.toarray.php">MongoDB\Driver\CursorInterface::toArray</a> — Renvoie un tableau contenant tous les r&eacute;sultats de ce curseur</li></ul>
</div>
<?php manual_footer($setup); ?>