cvs: peardoc /en/package/database/db intro-connect.xml
| From: | Daniel Convissor | Date: | Thu, 05 Feb 2004 03:48:46 +0000 |
| Subject: | cvs: peardoc /en/package/database/db intro-connect.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2417@lists.php.net to get a copy of this message | ||
danielc Wed Feb 4 22:48:46 2004 EDT
Modified files:
/peardoc/en/package/database/db intro-connect.xml
Log:
Second param has been $options for a long time, so, hey, let's document it...
http://cvs.php.net/diff.php/peardoc/en/package/database/db/intro-connect.xml?r1=1.12&r2=1.13&ty=u
Index: peardoc/en/package/database/db/intro-connect.xml
diff -u peardoc/en/package/database/db/intro-connect.xml:1.12
peardoc/en/package/database/db/intro-connect.xml:1.13
--- peardoc/en/package/database/db/intro-connect.xml:1.12 Wed Feb 4 22:38:26 2004
+++ peardoc/en/package/database/db/intro-connect.xml Wed Feb 4 22:48:46 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<refentry id="package.database.db.intro-connect">
<refnamediv>
<refname>Introduction - Connect</refname>
@@ -11,12 +11,23 @@
<link linkend="package.database.db.db.connect">
<function>DB::connect</function></link>, which requires a valid
<link linkend="package.database.db.intro-dsn">DSN</link>
- as parameter and
- optional a boolean value, which determines whether to use a
- persistent connection or not. In case of success you get a new
- instance of the database class. It is strongly recommened to
+ as the first parameter. This parameter can either be a string
+ or an array.
+ </simpara>
+ <simpara>
+ The second parameter is the optional <parameter>$options</parameter>
+ array that can contain runtime configuration settings for this package.
+ See <link linkend="package.database.db.db-common.setoption">
+ <function>setOption</function></link> for more information on the
+ available settings.
+ </simpara>
+ <simpara>
+ In case of success you get a new instance of the database class.
+ It is strongly recommened to
check this return value with <link linkend="package.database.db.db.iserror">
<function>DB::isError</function></link>.
+ </simpara>
+ <simpara>
To disconnect use the method <link
linkend="package.database.db.db-common.disconnect">
<function>disconnect</function></link>