mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
103 lines
2.7 KiB
XML
103 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="function.dba-handlers" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>dba_handlers</refname>
|
|
<refpurpose>List all the handlers available</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>dba_handlers</methodname>
|
|
<methodparam choice="opt"><type>bool</type><parameter>full_info</parameter><initializer>false</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>dba_handlers</function> list all the handlers supported by this
|
|
extension.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>full_info</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Turns on/off full information display in the result.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Returns an array of database handlers. If <parameter>full_info</parameter>
|
|
is set to &true;, the array will be associative with the handlers names as
|
|
keys, and their version information as value. Otherwise, the result will be
|
|
an indexed array of handlers names.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
When the internal cdb library is used you will see
|
|
<literal>cdb</literal> and <literal>cdb_make</literal>.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>dba_handlers</function> Example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
echo "Available DBA handlers:\n";
|
|
foreach (dba_handlers(true) as $handler_name => $handler_version) {
|
|
// clean the versions
|
|
$handler_version = str_replace('$', '', $handler_version);
|
|
echo " - $handler_name: $handler_version\n";
|
|
}
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Available DBA handlers:
|
|
- cdb: 0.75, Revision: 1.3.2.3
|
|
- cdb_make: 0.75, Revision: 1.2.2.4
|
|
- db2: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
|
|
- inifile: 1.0, Revision: 1.6.2.3
|
|
- flatfile: 1.0, Revision: 1.5.2.4
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|