cvs: peardoc /en/package/database/mdb2 intro-module.xml
| From: | Lukas Smith | Date: | Tue, 11 Jul 2006 12:28:55 +0000 |
| Subject: | cvs: peardoc /en/package/database/mdb2 intro-module.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8138@lists.php.net to get a copy of this message | ||
lsmith Tue Jul 11 12:28:55 2006 UTC
Modified files:
/peardoc/en/package/database/mdb2 intro-module.xml
Log:
- expanded documentation of the optional 3rd parameter to loadModule()
http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-module.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/database/mdb2/intro-module.xml
diff -u peardoc/en/package/database/mdb2/intro-module.xml:1.2
peardoc/en/package/database/mdb2/intro-module.xml:1.3
--- peardoc/en/package/database/mdb2/intro-module.xml:1.2 Sat Jun 17 14:55:18 2006
+++ peardoc/en/package/database/mdb2/intro-module.xml Tue Jul 11 12:28:55 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- add information on the following methods:
factory(), singleton() -->
@@ -65,8 +65,18 @@
method. This method returns the module instance, but also stores the
instance in a property. The name of the property is either the lowercased
name of the module passed in as the first parameter, or optionally the non
- null value of the second parameter. The method can also be used to load
- custom modules that are installed.
+ null value of the second parameter. The optional third parameter is used to
+ differentiate modules that depend on a specific RDBMS (like the
+ <ulink url="http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Driver_Datatype_Common.html">
+ Datatype</ulink> module) and those that do not (like the
+ <ulink url="http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Extended.html">
+ Extended</ulink>. The method can also be used to load custom modules that are installed.
+ <warning>
+ <para>
+ The third parameter is only required on hosts that run in safe_mode,
+ otherwise the proper value is automatically detected.
+ </para>
+ </warning>
</simpara>
<example>
@@ -129,7 +139,6 @@
</programlisting>
</example>
-
<simpara>
On PHP5 users can also rely on overloading to load and call modules.
</simpara>