<?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-cursorinterface.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-cursorinterface.settypemap.php',
    1 => 'MongoDB\\Driver\\CursorInterface::setTypeMap',
    2 => 'D&eacute;finit une carte de type &agrave; utiliser pour la d&eacute;s&eacute;rialisation BSON',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-cursorinterface.php',
    1 => 'MongoDB\\Driver\\CursorInterface',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-cursorinterface.isdead.php',
    1 => 'MongoDB\\Driver\\CursorInterface::isDead',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-cursorinterface.toarray.php',
    1 => 'MongoDB\\Driver\\CursorInterface::toArray',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mongodb/mongodb/driver/cursorinterface/settypemap.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-cursorinterface.settypemap" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\CursorInterface::setTypeMap</h1>
  <p class="verinfo">(mongodb &gt;=1.6.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\CursorInterface::setTypeMap</span> &mdash; <span class="dc-title">Définit une carte de type à utiliser pour la désérialisation BSON</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-cursorinterface.settypemap-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\CursorInterface::setTypeMap</strong></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>

  <p class="simpara">
   Définit la <a href="mongodb.persistence.php#mongodb.persistence.typemaps" class="link">configuration
   type map</a> à utiliser lors de la désérialisation des résultats BSON en
   valeurs PHP.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-cursorinterface.settypemap-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   

<dt><code class="parameter">typeMap</code> (<span class="type"><a href="language.types.array.php" class="type array">array</a></span>)</dt>
<dd>
    <p class="para">
        <a href="mongodb.persistence.php#mongodb.persistence.typemaps" class="link">Configuration du type de carte</a>.
    </p>
</dd>


  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-cursorinterface.settypemap-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Aucune valeur n&#039;est retournée.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-cursorinterface.settypemap-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <ul class="simplelist">
   <li>Lance une exception <span class="classname"><strong class="classname">MongoDB\Driver\InvalidArgumentException</strong></span> lors d'une erreur survenue pendant l'analyse d'un argument.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-cursorinterface.settypemap-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="mongodb-driver-cursor.settypemap.php" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Cursor::setTypeMap()</a> - D&eacute;finit un type de carte &agrave; utiliser pour la d&eacute;s&eacute;rialisation BSON</span></li>
   <li><a href="mongodb.persistence.php" class="xref">Persister des donn&eacute;es</a></li>
  </ul>
 </div>


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