cvs: pear /Auth Auth.php Container.php /Auth/Container DB.php
| From: | Martin Jansen | Date: | Fri, 02 Nov 2001 11:24:51 +0000 |
| Subject: | cvs: pear /Auth Auth.php Container.php /Auth/Container DB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1242@lists.php.net to get a copy of this message | ||
mj Fri Nov 2 06:24:51 2001 EDT
Modified files:
/pear/Auth Auth.php Container.php
/pear/Auth/Container DB.php
Log:
* Style changes only
Index: pear/Auth/Auth.php
diff -u pear/Auth/Auth.php:1.9 pear/Auth/Auth.php:1.10
--- pear/Auth/Auth.php:1.9 Fri Nov 2 06:01:42 2001
+++ pear/Auth/Auth.php Fri Nov 2 06:24:50 2001
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth.php,v 1.9 2001/11/02 11:01:42 mj Exp $
+// $Id: Auth.php,v 1.10 2001/11/02 11:24:50 mj Exp $
//
/**
@@ -45,7 +45,7 @@
*
* @author Martin Jansen <mj@php.net>
* @package Auth
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
define("AUTH_IDLED", -1);
@@ -129,11 +129,11 @@
$this->loginFunction = $loginFunction;
}
- $this->storage = $this->_factory($storageDriver,$options);
+ $this->storage = $this->_factory($storageDriver, $options);
}
// }}}
- // {{{ _factory
+ // {{{ _factory()
/**
* Return a storage driver based on $driver and $options
@@ -146,8 +146,8 @@
*/
function _factory($driver, $options = "")
{
- $storage_path = "Auth/Container/".$driver.".php";
- $storage_class = "Auth_Container_".$driver;
+ $storage_path = "Auth/Container/" . $driver . ".php";
+ $storage_class = "Auth_Container_" . $driver;
require_once $storage_path;
@@ -216,7 +216,7 @@
* we have to validate it.
*/
if ($this->username != "") {
- $login_ok = $this->storage->fetchData($this->username,$this->password);
+ $login_ok = $this->storage->fetchData($this->username, $this->password);
}
/**
@@ -243,7 +243,7 @@
* @param integer time in seconds
* @param bool add time to current expire time or not
*/
- function setExpire($time,$add = false)
+ function setExpire($time, $add = false)
{
if ($add) {
$this->expire += $time;
Index: pear/Auth/Container.php
diff -u pear/Auth/Container.php:1.2 pear/Auth/Container.php:1.3
--- pear/Auth/Container.php:1.2 Sat Jul 21 18:02:48 2001
+++ pear/Auth/Container.php Fri Nov 2 06:24:50 2001
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Container.php,v 1.2 2001/07/21 22:02:48 mj Exp $
+// $Id: Container.php,v 1.3 2001/11/02 11:24:50 mj Exp $
//
/**
@@ -42,7 +42,7 @@
}
// }}}
- // {{{ fetchData
+ // {{{ fetchData()
/**
* Fetch data from storage container
Index: pear/Auth/Container/DB.php
diff -u pear/Auth/Container/DB.php:1.5 pear/Auth/Container/DB.php:1.6
--- pear/Auth/Container/DB.php:1.5 Thu Nov 1 09:43:09 2001
+++ pear/Auth/Container/DB.php Fri Nov 2 06:24:50 2001
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.5 2001/11/01 14:43:09 mj Exp $
+// $Id: DB.php,v 1.6 2001/11/02 11:24:50 mj Exp $
//
require_once "Auth/Container.php";
@@ -30,7 +30,7 @@
*
* @author Martin Jansen <mj@php.net>
* @package Auth
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
class Auth_Container_DB extends Auth_Container
{
@@ -94,7 +94,7 @@
}
// }}}
- // {{{ _connect
+ // {{{ _connect()
/**
* Connect to database by using the given DSN string
@@ -115,7 +115,7 @@
}
// }}}
- // {{{ _setDefaults
+ // {{{ _setDefaults()
/**
* Set some default options
@@ -124,14 +124,14 @@
*/
function _setDefaults()
{
- $this->options['table'] = "auth";
+ $this->options['table'] = "auth";
$this->options['usernamecol'] = "username";
$this->options['passwordcol'] = "password";
- $this->options['dsn'] = "";
+ $this->options['dsn'] = "";
}
// }}}
- // {{{ _parseOptions
+ // {{{ _parseOptions()
/**
* Parse options passed to the container class