<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.geoip.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'function.geoip-db-get-all-info.php',
    1 => 'geoip_db_get_all_info',
    2 => 'Retorna informa&ccedil;&otilde;es detalhadas sobre todos os tipos de banco de dados GeoIP',
  ),
  'up' => 
  array (
    0 => 'ref.geoip.php',
    1 => 'Fun&ccedil;&otilde;es de GeoIP',
  ),
  'prev' => 
  array (
    0 => 'function.geoip-db-filename.php',
    1 => 'geoip_db_filename',
  ),
  'next' => 
  array (
    0 => 'function.geoip-domain-by-name.php',
    1 => 'geoip_domain_by_name',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/geoip/functions/geoip-db-get-all-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.geoip-db-get-all-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">geoip_db_get_all_info</h1>
  <p class="verinfo">(PECL geoip &gt;= 1.0.1)</p><p class="refpurpose"><span class="refname">geoip_db_get_all_info</span> &mdash; <span class="dc-title">Retorna informações detalhadas sobre todos os tipos de banco de dados GeoIP</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.geoip-db-get-all-info-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>geoip_db_get_all_info</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>


  <p class="simpara">
   A função <span class="function"><strong>geoip_db_get_all_info()</strong></span> retornará
   informações detalhadas como um array multidimensional sobre todos os
   tipos de banco de dados GeoIP.
  </p>
  <p class="simpara">
   Esta função está disponível mesmo se nenhum banco de dados estiver instalado. Ela
   simplesmente os listará como não disponíveis.
  </p>
  <p class="simpara">
   Os nomes das diferentes chaves do array associativo de retorno são os seguintes:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     &quot;available&quot; -- booleano, indica se o banco de dados está disponível (consulte
     <span class="function"><a href="function.geoip-db-avail.php" class="function">geoip_db_avail()</a></span>)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     &quot;description&quot; -- A descrição do banco de dados
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     &quot;filename&quot; -- O nome do arquivo do banco de dados no disco (consulte
     <span class="function"><a href="function.geoip-db-filename.php" class="function">geoip_db_filename()</a></span>)
    </span>
   </li>
  </ul>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.geoip-db-get-all-info-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">Esta função não possui parâmetros.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.geoip-db-get-all-info-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="simpara">
   Retorna o array associativo.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.geoip-db-get-all-info-examples">
  <h3 class="title">Exemplos</h3>
  <div class="example" id="example-1">
   <p><strong>Exemplo #1 Um exemplo de <span class="function"><strong>geoip_db_get_all_info()</strong></span></strong></p>
   <div class="example-contents"><p>
    Isso exibirá o array contendo todas as informações.
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$infos </span><span style="color: #007700">= </span><span style="color: #0000BB">geoip_db_get_all_info</span><span style="color: #007700">();<br />if (</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$infos</span><span style="color: #007700">)) {<br />    </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$infos</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>O exemplo acima produzirá:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">array(11) {
  [1]=&gt;
  array(3) {
    [&quot;available&quot;]=&gt;
    bool(true)
    [&quot;description&quot;]=&gt;
    string(21) &quot;GeoIP Country Edition&quot;
    [&quot;filename&quot;]=&gt;
    string(32) &quot;/usr/share/GeoIP/GeoIP.dat&quot;
  }

[ ... ]

  [11]=&gt;
  array(3) {
    [&quot;available&quot;]=&gt;
    bool(false)
    [&quot;description&quot;]=&gt;
    string(25) &quot;GeoIP Domain Name Edition&quot;
    [&quot;filename&quot;]=&gt;
    string(38) &quot;/usr/share/GeoIP/GeoIPDomain.dat&quot;
  }
}</pre>
</div>
   </div>
  </div>

<div class="example" id="example-2">
   <p><strong>Exemplo #2 Um exemplo de <span class="function"><strong>geoip_db_get_all_info()</strong></span></strong></p>
   <div class="example-contents"><p>
    Pode-se usar as várias constantes como chaves para obter apenas partes das informações.
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$infos </span><span style="color: #007700">= </span><span style="color: #0000BB">geoip_db_get_all_info</span><span style="color: #007700">();<br />if (</span><span style="color: #0000BB">$infos</span><span style="color: #007700">[</span><span style="color: #0000BB">GEOIP_COUNTRY_EDITION</span><span style="color: #007700">][</span><span style="color: #DD0000">'available'</span><span style="color: #007700">]) {<br />    echo </span><span style="color: #0000BB">$infos</span><span style="color: #007700">[</span><span style="color: #0000BB">GEOIP_COUNTRY_EDITION</span><span style="color: #007700">][</span><span style="color: #DD0000">'description'</span><span style="color: #007700">];<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>O exemplo acima produzirá:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">GeoIP Country Edition</pre>
</div>
   </div>
  </div>
 </div>


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