<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysql-xdevapi-schema.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mysql-xdevapi-schema.gettables.php',
    1 => 'Schema::getTables',
    2 => 'Renvoie les tables du sch&eacute;ma',
  ),
  'up' => 
  array (
    0 => 'class.mysql-xdevapi-schema.php',
    1 => 'mysql_xdevapi\\Schema',
  ),
  'prev' => 
  array (
    0 => 'mysql-xdevapi-schema.gettable.php',
    1 => 'Schema::getTable',
  ),
  'next' => 
  array (
    0 => 'class.mysql-xdevapi-schemaobject.php',
    1 => 'mysql_xdevapi\\SchemaObject',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mysql_xdevapi/mysql_xdevapi/schema/gettables.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql-xdevapi-schema.gettables" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Schema::getTables</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Schema::getTables</span> &mdash; <span class="dc-title">Renvoie les tables du schéma</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysql-xdevapi-schema.gettables-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysql_xdevapi\Schema::getTables</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">

  </p>

  
<div class="warning"><strong class="warning">Avertissement</strong>
<p class="simpara">
 Cette fonction est actuellement non documentée ; seule la liste des arguments est disponible.
</p>
</div>


 </div>


 <div class="refsect1 parameters" id="refsect1-mysql-xdevapi-schema.gettables-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysql-xdevapi-schema.gettables-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Un tableau de toutes les tables de ce schéma, où chaque élément de tableau
   est un objet Table avec le nom de la table comme clé.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysql-xdevapi-schema.gettables-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Exemple de <span class="function"><strong>mysql_xdevapi\Schema::getTables()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$session </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_xdevapi\getSession</span><span style="color: #007700">(</span><span style="color: #DD0000">"mysqlx://user:password@localhost"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"DROP DATABASE IF EXISTS addressbook"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE DATABASE addressbook"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE TABLE addressbook.names(name text, age int)"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"INSERT INTO addressbook.names values ('John', 42), ('Sam', 33)"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE TABLE addressbook.cities(name text, population int)"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #DD0000">"INSERT INTO addressbook.names values ('Portland', 639863), ('Seattle', 704352)"</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$schema </span><span style="color: #007700">= </span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSchema</span><span style="color: #007700">(</span><span style="color: #DD0000">"addressbook"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$tables </span><span style="color: #007700">= </span><span style="color: #0000BB">$schema</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getTables</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$tables</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">array(2) {
  [&quot;cities&quot;]=&gt;
  object(mysql_xdevapi\Table)#3 (1) {
    [&quot;name&quot;]=&gt;
    string(6) &quot;cities&quot;
  }

  [&quot;names&quot;]=&gt;
  object(mysql_xdevapi\Table)#4 (1) {
    [&quot;name&quot;]=&gt;
    string(5) &quot;names&quot;
  }
}</pre>
</div>
   </div>
  </div>
 </div>


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