cvs: pear /Auth_PrefManager2 PrefManager2.php
| From: | Jon Wood | Date: | Wed, 07 Jul 2004 16:32:34 +0000 |
| Subject: | cvs: pear /Auth_PrefManager2 PrefManager2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21602@lists.php.net to get a copy of this message | ||
jellybob Wed Jul 7 12:32:34 2004 EDT
Modified files:
/pear/Auth_PrefManager2 PrefManager2.php
Log:
Make sure that the debug option is set before trying to use it.
http://cvs.php.net/diff.php/pear/Auth_PrefManager2/PrefManager2.php?r1=1.11&r2=1.12&ty=u
Index: pear/Auth_PrefManager2/PrefManager2.php
diff -u pear/Auth_PrefManager2/PrefManager2.php:1.11 pear/Auth_PrefManager2/PrefManager2.php:1.12
--- pear/Auth_PrefManager2/PrefManager2.php:1.11 Wed Jul 7 12:04:14 2004
+++ pear/Auth_PrefManager2/PrefManager2.php Wed Jul 7 12:32:34 2004
@@ -39,21 +39,11 @@
* @package Auth_PrefManager2
* @category Authentication
* @version 0.1.0
- * @abstract
+ * @static
* @todo Add caching support.
- * @todo Write some containers.
*/
class Auth_PrefManager2
-{
- /**
- * The PEAR_ErrorStack object to use for error handling.
- *
- * @var PEAR_ErrorStack
- * @access protected
- * @since 0.1.0
- */
- var $_errorStack = null;
-
+{
/**
* Creates an instance of PrefManager, with the options specified, and data
* access being done by the specified container.
@@ -74,6 +64,10 @@
$class = "Auth_PrefManager2_Container_${container}";
$file = "Auth/PrefManager2/Container/${container}.php";
+ if (!isset($options['debug'])) {
+ $options['debug'] = false;
+ }
+
if (class_exists($class)) {
$obj =& new $class($options);
return $obj;
@@ -134,6 +128,7 @@
* @param string $level The level of the error.
* @param array $params Any other information to include with the error.
* @return void
+ * @static
* @access protected
*/
function _throwError($code, $level = 'error', $params = array(), $repackage = null)