cvs: pear /MDB2_Schema/MDB2 Schema.php
| From: | Lukas Smith | Date: | Thu, 07 Apr 2005 08:24:01 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2 Schema.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31010@lists.php.net to get a copy of this message | ||
lsmith Thu Apr 7 04:24:01 2005 EDT
Modified files:
/pear/MDB2_Schema/MDB2 Schema.php
Log:
- added apiVersion()
- use PEAR::raiseError()
http://cvs.php.net/diff.php/pear/MDB2_Schema/MDB2/Schema.php?r1=1.3&r2=1.4&ty=u
Index: pear/MDB2_Schema/MDB2/Schema.php
diff -u pear/MDB2_Schema/MDB2/Schema.php:1.3 pear/MDB2_Schema/MDB2/Schema.php:1.4
--- pear/MDB2_Schema/MDB2/Schema.php:1.3 Thu Apr 7 04:14:47 2005
+++ pear/MDB2_Schema/MDB2/Schema.php Thu Apr 7 04:23:59 2005
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Schema.php,v 1.3 2005/04/07 08:14:47 lsmith Exp $
+// $Id: Schema.php,v 1.4 2005/04/07 08:23:59 lsmith Exp $
//
require_once 'MDB2.php';
@@ -76,8 +76,7 @@
'user' => array(),
'is' => array(),
'file' => array(
- 'oci' => array(),
- 'oracle' => array()
+ 'oci8' => array(),
),
'notify' => array(
'pgsql' => array()
@@ -97,6 +96,20 @@
);
// }}}
+ // {{{ apiVersion()
+
+ /**
+ * Return the MDB2 API version
+ *
+ * @return string the MDB2 API version number
+ * @access public
+ */
+ function apiVersion()
+ {
+ return '@package_version@';
+ }
+
+ // }}}
// {{{ raiseError()
/**
@@ -122,7 +135,7 @@
*/
function &raiseError($code = null, $mode = null, $options = null, $userinfo = null)
{
- return MDB2::raiseError($code, $mode, $options, $userinfo);
+ return PEAR::raiseError(null, $code, $mode, $options, $userinfo, 'MDB2_Error',
true);
}
// }}}