cvs: pear /LiveUser/Auth DB.php MDB.php MDB2.php

From: Date: Mon, 28 Nov 2005 19:53:41 +0000
Subject: cvs: pear /LiveUser/Auth DB.php MDB.php MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36577@lists.php.net to get a copy of this message
lsmith Mon Nov 28 14:53:41 2005 EDT Modified files: /pear/LiveUser/Auth DB.php MDB.php MDB2.php Log: - phpdoc fixes

http://cvs.php.net/diff.php/pear/LiveUser/Auth/DB.php?r1=1.26&r2=1.27&ty=u Index: pear/LiveUser/Auth/DB.php diff -u pear/LiveUser/Auth/DB.php:1.26 pear/LiveUser/Auth/DB.php:1.27 --- pear/LiveUser/Auth/DB.php:1.26 Fri Nov 25 22:47:48 2005 +++ pear/LiveUser/Auth/DB.php Mon Nov 28 14:53:40 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: DB.php,v 1.26 2005/11/26 03:47:48 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.27 2005/11/28 19:53:40 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -63,7 +63,6 @@ * passed to the constructor. * Example: array('dsn' => 'mysql://user:pass@host/db_name', * 'connection => &$conn, # PEAR::DB connection object - * 'loginTimeout' => 0, * 'allowDuplicateHandles' => 1); * * @category authentication @@ -79,7 +78,7 @@ /** * dsn that was connected to * - * @var object + * @var string * @access private */ var $dsn = null; @@ -104,9 +103,9 @@ /** * Load the storage container * - * @param mixed Name of array containing the configuration. - * @param string name of the container that should be used - * @return boolean true on success or false on failure + * @param array Name of array containing the configuration. + * @param string name of the container that should be used + * @return boolean true on success or false on failure * * @access public */ @@ -140,8 +139,6 @@ /** * Writes current values for user back to the database. - * This method does nothing in the base class and is supposed to - * be overridden in subclasses according to the supported backend. * * @return boolean true on success or false on failure * @@ -173,8 +170,7 @@ } /** - * Reads auth_user_id, passwd, is_active flag - * lastlogin timestamp from the database + * Reads user data from the given data source * If only $handle is given, it will read the data * from the first user with that handle and return * true on success. @@ -183,12 +179,13 @@ * matching and return true on success (this allows * multiple users having the same handle but different * passwords - yep, some people want this). + * if only an auth_user_id is passed it will try to read the data based on the id * If no match is found, false is being returned. * - * @param string user handle - * @param boolean user password - * @param string auth user id - * @return boolean true upon success or false on failure + * @param string user handle + * @param boolean user password + * @param string auth user id + * @return boolean true on success or false on failure * * @access public */ http://cvs.php.net/diff.php/pear/LiveUser/Auth/MDB.php?r1=1.28&r2=1.29&ty=u Index: pear/LiveUser/Auth/MDB.php diff -u pear/LiveUser/Auth/MDB.php:1.28 pear/LiveUser/Auth/MDB.php:1.29 --- pear/LiveUser/Auth/MDB.php:1.28 Fri Nov 25 22:47:48 2005 +++ pear/LiveUser/Auth/MDB.php Mon Nov 28 14:53:40 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB.php,v 1.28 2005/11/26 03:47:48 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.29 2005/11/28 19:53:40 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -64,7 +64,6 @@ * passed to the constructor. * Example: array('dsn' => 'mysql://user:pass@host/db_name', * 'connection => &$conn, # PEAR::MDB connection object - * 'loginTimeout' => 0, * 'allowDuplicateHandles' => 1); * * @category authentication @@ -80,7 +79,7 @@ /** * dsn that was connected to * - * @var object + * @var string * @access private */ var $dsn = null; @@ -105,9 +104,9 @@ /** * Load the storage container * - * @param mixed Name of array containing the configuration. - * @param string name of the container that should be used - * @return boolean true on success or false on failure + * @param array Name of array containing the configuration. + * @param string name of the container that should be used + * @return boolean true on success or false on failure * * @access public */ @@ -149,8 +148,6 @@ /** * Writes current values for user back to the database. - * This method does nothing in the base class and is supposed to - * be overridden in subclasses according to the supported backend. * * @return boolean true on success or false on failure * @@ -182,8 +179,7 @@ } /** - * Reads auth_user_id, passwd, is_active flag - * lastlogin timestamp from the database + * Reads user data from the given data source * If only $handle is given, it will read the data * from the first user with that handle and return * true on success. @@ -192,14 +188,15 @@ * matching and return true on success (this allows * multiple users having the same handle but different * passwords - yep, some people want this). + * if only an auth_user_id is passed it will try to read the data based on the id * If no match is found, false is being returned. * - * @param string user handle + * @param string user handle * @param boolean user password - * @param string auth user id - * @return boolean true upon success or false on failure + * @param string auth user id + * @return boolean true on success or false on failure * - * @access private + * @access public */ function readUserData($handle = '', $passwd = '', $auth_user_id = false) { http://cvs.php.net/diff.php/pear/LiveUser/Auth/MDB2.php?r1=1.30&r2=1.31&ty=u Index: pear/LiveUser/Auth/MDB2.php diff -u pear/LiveUser/Auth/MDB2.php:1.30 pear/LiveUser/Auth/MDB2.php:1.31 --- pear/LiveUser/Auth/MDB2.php:1.30 Fri Nov 25 22:47:48 2005 +++ pear/LiveUser/Auth/MDB2.php Mon Nov 28 14:53:40 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB2.php,v 1.30 2005/11/26 03:47:48 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.31 2005/11/28 19:53:40 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -64,7 +64,6 @@ * passed to the constructor. * Example: array('dsn' => 'mysql://user:pass@host/db_name', * 'connection => &$conn, # PEAR::MDB2 connection object - * 'loginTimeout' => 0, * 'allowDuplicateHandles' => 1); * * @category authentication @@ -80,7 +79,7 @@ /** * dsn that was connected to * - * @var object + * @var string * @access private */ var $dsn = null; @@ -105,9 +104,9 @@ /** * Load the storage container * - * @param mixed Name of array containing the configuration. - * @param string name of the container that should be used - * @return boolean true on success or false on failure + * @param array Name of array containing the configuration. + * @param string name of the container that should be used + * @return boolean true on success or false on failure * * @access public */ @@ -180,8 +179,7 @@ } /** - * Reads auth_user_id, passwd, is_active flag - * lastlogin timestamp from the database + * Reads user data from the given data source * If only $handle is given, it will read the data * from the first user with that handle and return * true on success. @@ -190,14 +188,15 @@ * matching and return true on success (this allows * multiple users having the same handle but different * passwords - yep, some people want this). + * if only an auth_user_id is passed it will try to read the data based on the id * If no match is found, false is being returned. * - * @param string user handle + * @param string user handle * @param boolean user password - * @param string auth user id + * @param string auth user id * @return boolean true on success or false on failure * - * @access private + * @access public */ function readUserData($handle = '', $passwd = '', $auth_user_id = false) {
« previous php.pear.cvs (#36577) next »