cvs: peardoc /en/package/database/db/db-common getoption.xml
| From: | Daniel Convissor | Date: | Fri, 04 Jun 2004 21:04:35 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common getoption.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4224@lists.php.net to get a copy of this message | ||
danielc Fri Jun 4 17:04:35 2004 EDT
Added files:
/peardoc/en/package/database/db/db-common getoption.xml
Log:
Add doc for this method.
http://cvs.php.net/co.php/peardoc/en/package/database/db/db-common/getoption.xml?r=1.1&p=1
Index: peardoc/en/package/database/db/db-common/getoption.xml
+++ peardoc/en/package/database/db/db-common/getoption.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.database.db.db-common.getoption">
<refnamediv>
<refname>DB_common::getOption()</refname>
<refpurpose>
Determines current state of a PEAR DB configuration option
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>mixed <function>getOption</function></funcdef>
<paramdef>
string <parameter>$option</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.database.db.db-common.getoption.desc">
&title.desc;
<para>
Determines current state of a PEAR DB configuration option
</para>
</refsect1>
<refsect1 id="package.database.db.db-common.getoption.parameter">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
&type.string;
<parameter>$option</parameter>
</term>
<listitem>
<para>
name of the option to examine
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="package.database.db.db-common.getoption.return">
&title.returns;
<para>
&type.mixed; the option's value
</para>
</refsect1>
<refsect1 id="package.database.db.db-common.getoption.throws">
&title.throws;
<para>
<table>
<title>&title.throws.errortable;</title>
<tgroup cols="4">
<thead>
<row>
<entry>Error code</entry>
<entry>Error message</entry>
<entry>Reason</entry>
<entry>Solution</entry>
</row>
</thead>
<tbody>
<row>
<entry>&null;</entry>
<entry>
<computeroutput>unknown option</computeroutput>
</entry>
<entry>
The given option does not exist
</entry>
<entry>
Check <parameter>$option</parameter> for typographical errors
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 id="package.database.db.db-common.getoption.note">
&title.note;
¬e.notstatic;
</refsect1>
<refsect1 id="package.database.db.db-common.getoption.example">
&title.example;
<example>
<title>Simple <function>getOption</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
// Once you have a valid DB object named $db...
if ($db->getOption('autofree')) {
// do something...
}
?>
]]>
</programlisting>
</example>
</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-getfetchmode-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../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
-->