cvs: pear /LiveUser_Admin Admin.php Storage.php /LiveUser_Admin/Auth Common.php DB.php MDB.php MDB2.php /LiveUser_Admin/Auth/Storage DB.php MDB.php
MDB2.php /LiveUser_Admin/Perm Complex.php Medium.php Simple.php /LiveUser_Admin/Perm/Storage DB.php MDB.php MDB2.php /LiveUser_Admin/Storage DB.php
MDB.php MDB2.php SQL.php
| From: | Lukas Smith | Date: | Wed, 16 Nov 2005 13:20:28 +0000 |
| Subject: | cvs: pear /LiveUser_Admin Admin.php Storage.php /LiveUser_Admin/Auth Common.php DB.php MDB.php MDB2.php /LiveUser_Admin/Auth/Storage DB.php MDB.php MDB2.php /LiveUser_Admin/Perm Complex.php Medium.php Simple.php /LiveUser_Admin/Perm/Storage DB.php MDB.php MDB2.php /LiveUser_Admin/Storage DB.php MDB.php MDB2.php SQL.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36325@lists.php.net to get a copy of this message | ||
lsmith Wed Nov 16 08:20:28 2005 EDT
Modified files:
/pear/LiveUser_Admin Admin.php Storage.php
/pear/LiveUser_Admin/Auth Common.php DB.php MDB.php MDB2.php
/pear/LiveUser_Admin/Auth/Storage DB.php MDB.php MDB2.php
/pear/LiveUser_Admin/Perm Complex.php Medium.php Simple.php
/pear/LiveUser_Admin/Perm/Storage DB.php MDB.php MDB2.php
/pear/LiveUser_Admin/Storage DB.php MDB.php MDB2.php SQL.php
Log:
- phpdoc fixes
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Admin.php?r1=1.52&r2=1.53&ty=u Index: pear/LiveUser_Admin/Admin.php diff -u pear/LiveUser_Admin/Admin.php:1.52 pear/LiveUser_Admin/Admin.php:1.53 --- pear/LiveUser_Admin/Admin.php:1.52 Thu Nov 10 02:36:24 2005 +++ pear/LiveUser_Admin/Admin.php Wed Nov 16 08:20:21 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Admin.php,v 1.52 2005/11/10 07:36:24 lsmith Exp $ + * @version CVS: $Id: Admin.php,v 1.53 2005/11/16 13:20:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -96,10 +96,10 @@ * @see LiveUser::factory() * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Arnaud Limbourg <arnaud@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage.php?r1=1.10&r2=1.11&ty=u Index: pear/LiveUser_Admin/Storage.php diff -u pear/LiveUser_Admin/Storage.php:1.10 pear/LiveUser_Admin/Storage.php:1.11 --- pear/LiveUser_Admin/Storage.php:1.10 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage.php Wed Nov 16 08:20:21 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Storage.php,v 1.10 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: Storage.php,v 1.11 2005/11/16 13:20:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -66,7 +66,7 @@ * for internal use only. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Common.php?r1=1.21&r2=1.22&ty=u Index: pear/LiveUser_Admin/Auth/Common.php diff -u pear/LiveUser_Admin/Auth/Common.php:1.21 pear/LiveUser_Admin/Auth/Common.php:1.22 --- pear/LiveUser_Admin/Auth/Common.php:1.21 Mon Nov 14 03:28:31 2005 +++ pear/LiveUser_Admin/Auth/Common.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Common.php,v 1.21 2005/11/14 08:28:31 lsmith Exp $ + * @version CVS: $Id: Common.php,v 1.22 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -65,7 +65,7 @@ * Base class for authentication backends. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt @@ -158,7 +158,7 @@ } /** - * Load the storage container + * Initialize the storage container * * @access public * @param array contains configuration of the container @@ -266,7 +266,7 @@ * Add a user * * @param array containing atleast the key-value-pairs of all required - * columns in the user table + * columns in the users table * @return integer|boolean false on error, true (or new id) on success * * @access public @@ -286,6 +286,9 @@ * * @param array containing the key value pairs of columns to update * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update * @return integer|boolean false on error, the affected rows on success * * @access public @@ -304,6 +307,9 @@ * Remove a user * * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update * @return integer|boolean false on error, the affected rows on success * * @access public http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/DB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/DB.php diff -u pear/LiveUser_Admin/Auth/DB.php:1.13 pear/LiveUser_Admin/Auth/DB.php:1.14 --- pear/LiveUser_Admin/Auth/DB.php:1.13 Mon Nov 14 03:20:12 2005 +++ pear/LiveUser_Admin/Auth/DB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:12 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -78,7 +78,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Bjoern Kraus <krausbn@php.net> * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/MDB.php diff -u pear/LiveUser_Admin/Auth/MDB.php:1.13 pear/LiveUser_Admin/Auth/MDB.php:1.14 --- pear/LiveUser_Admin/Auth/MDB.php:1.13 Mon Nov 14 03:20:13 2005 +++ pear/LiveUser_Admin/Auth/MDB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:13 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ /** @@ -77,7 +77,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB2.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/MDB2.php diff -u pear/LiveUser_Admin/Auth/MDB2.php:1.13 pear/LiveUser_Admin/Auth/MDB2.php:1.14 --- pear/LiveUser_Admin/Auth/MDB2.php:1.13 Mon Nov 14 03:20:13 2005 +++ pear/LiveUser_Admin/Auth/MDB2.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:13 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/DB.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/DB.php diff -u pear/LiveUser_Admin/Auth/Storage/DB.php:1.6 pear/LiveUser_Admin/Auth/Storage/DB.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/DB.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/DB.php Wed Nov 16 08:20:24 2005 @@ -47,7 +47,7 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Markus Wolff <wolff@21st.de> * @permor Helgi Þormar Þorbjörnsson <dufuz@php.net> * @permor Lukas Smith <smith@pooteeweet.org> @@ -57,7 +57,7 @@ * @permor 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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/MDB.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/MDB.php diff -u pear/LiveUser_Admin/Auth/Storage/MDB.php:1.6 pear/LiveUser_Admin/Auth/Storage/MDB.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/MDB.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/MDB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/MDB2.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/MDB2.php diff -u pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.6 pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/MDB2.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.73&r2=1.74&ty=u Index: pear/LiveUser_Admin/Perm/Complex.php diff -u pear/LiveUser_Admin/Perm/Complex.php:1.73 pear/LiveUser_Admin/Perm/Complex.php:1.74 --- pear/LiveUser_Admin/Perm/Complex.php:1.73 Mon Nov 14 03:28:33 2005 +++ pear/LiveUser_Admin/Perm/Complex.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Complex.php,v 1.73 2005/11/14 08:28:33 lsmith Exp $ + * @version CVS: $Id: Complex.php,v 1.74 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -74,7 +74,7 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Christian Dickmann <dickmann@php.net> * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> @@ -622,7 +622,7 @@ * Where 1 is the group_id * * @param array $params - * @return boolean | array + * @return boolean|array * * @access public */ @@ -653,7 +653,7 @@ * Helper method to fetch all groups including the subgroups * * @param array $params - * @return boolean | array + * @return boolean|array * * @access private */ @@ -710,7 +710,7 @@ * hierarchy tree structure * * @param array $params - * @return boolean | array + * @return boolean|array * * @access private */ @@ -772,7 +772,7 @@ * * * @param array $params - * @return boolean | array + * @return boolean|array * * @access public */ @@ -890,7 +890,7 @@ * * * @param array $params - * @return boolean | array false for error and array with impliedRights on success + * @return boolean|array false for error and array with impliedRights on success * * @access private */ @@ -920,7 +920,7 @@ * * * @param array $params - * @return boolean | array false for error and array with inheritedRights on success + * @return boolean|array false for error and array with inheritedRights on success * * @access private */ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Medium.php?r1=1.46&r2=1.47&ty=u Index: pear/LiveUser_Admin/Perm/Medium.php diff -u pear/LiveUser_Admin/Perm/Medium.php:1.46 pear/LiveUser_Admin/Perm/Medium.php:1.47 --- pear/LiveUser_Admin/Perm/Medium.php:1.46 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Medium.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: Medium.php,v 1.46 2005/11/14 08:28:34 lsmith Exp $ + * @version $Id: Medium.php,v 1.47 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -78,10 +78,10 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> * @author Bjoern Kraus <krausbn@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ @@ -121,19 +121,19 @@ return $result; } - /** - * Update group - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all groups will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update group - This will update the liveuser_perm_users table + * + * + * @param array associative array in the form of $fieldname => $data + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all groups will be affected by the update + * @return mixed false on error, the affected rows on success + * + * @access public + */ function updateGroup($data, $filters) { $result = $this->_storage->update('groups', $data, $filters); http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Simple.php?r1=1.69&r2=1.70&ty=u Index: pear/LiveUser_Admin/Perm/Simple.php diff -u pear/LiveUser_Admin/Perm/Simple.php:1.69 pear/LiveUser_Admin/Perm/Simple.php:1.70 --- pear/LiveUser_Admin/Perm/Simple.php:1.69 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Simple.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Simple.php,v 1.69 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: Simple.php,v 1.70 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,10 +71,10 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> * @author Bjoern Kraus <krausbn@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ @@ -98,6 +98,12 @@ */ var $_storage = null; + /** + * Key (method names), with array lists of selectable tables for the given method + * + * @var array + * @access public + */ var $selectable_tables = array( 'getUsers' => array('perm_users', 'userrights', 'rights'), 'getRights' => array('rights', 'userrights', 'translations', 'areas', 'applications'), @@ -106,6 +112,13 @@ 'getTranslations' => array('translations'), ); + /** + * Key (field name), with method names as values to determine what method + * should be called to get data when the 'with' option is used in a get*() method + * + * @var array + * @access public + */ var $withFieldMethodMap = array( 'perm_user_id' => 'getUsers', 'right_id' => 'getRights', @@ -122,11 +135,12 @@ } /** - * Load the storage container + * Initialize the storage container + * + * @param array array containing the configuration. + * @return boolean true on success or false on failure * * @access public - * @param mixed Name of array containing the configuration. - * @return boolean true on success or false on failure */ function init(&$conf) { @@ -158,11 +172,11 @@ } /** - * Add user + * Add a user * - * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the perm_users table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -177,19 +191,18 @@ return $result; } - /** - * Update user - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all users will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update users + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateUser($data, $filters) { $result = $this->_storage->update('perm_users', $data, $filters); @@ -198,15 +211,15 @@ } /** - * Remove user - * + * Remove users * - * @param array Array containing the filters on what user(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the removed + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::revokeUserRight */ function removeUser($filters) { @@ -226,10 +239,11 @@ } /** - * Add right + * Add a right * - * @param array associative array in the form of $fieldname => $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the rights table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -240,20 +254,18 @@ return $result; } - /** - * Update right - * - * Use this to update a right's information - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all rights will be affected by the update - * @return int|false the affected rows on success or false on error - * - * @access public - */ + /** + * Update rights + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all rights will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateRight($data, $filters) { $result = $this->_storage->update('rights', $data, $filters); @@ -262,14 +274,15 @@ } /** - * Remove right + * Remove rights * - * @param array Array containing the filters on what right(s) - * should be removed - * @return false|int false on error + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all rights will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::revokeUserRight */ function removeRight($filters) { @@ -289,11 +302,11 @@ } /** - * Add area + * Add an area * - * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the areas table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -304,19 +317,18 @@ return $result; } - /** - * Update area - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all areas will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update areas + * + * @param array associative array in the form of $fieldname => $data + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all areas will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateArea($data, $filters) { $result = $this->_storage->update('areas', $data, $filters); @@ -344,9 +356,11 @@ * $foo = $admin->perm->removeArea($filters); * </code> * - * @param array Array containing the filters on what area(s) - * should be removed - * @return + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all areas will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public * @uses LiveUser_Admin_Perm_Simple::removeRight @@ -371,7 +385,6 @@ /** * Set current application * - * * @param integer id of application * @return boolean always true * @@ -387,7 +400,6 @@ /** * Get current application * - * * @return string name of the current application * * @access public @@ -398,11 +410,11 @@ } /** - * Add application - * + * Add an application * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the applications table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -413,19 +425,18 @@ return $result; } - /** - * Update application - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all applications will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update applications + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all applictions will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateApplication($data, $filters) { $result = $this->_storage->update('applications', $data, $filters); @@ -434,15 +445,15 @@ } /** - * Remove application(s) + * Remove applications * - * - * @param array Array containing the filters on what application(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all applications will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::removeArea */ function removeApplication($filters) { @@ -473,7 +484,7 @@ * $lua->perm->grantUserRight($data); * </code> * - * @param array $data + * @param array containing the perm_user_id and right_id and optionally a right_level * @return * * @access public @@ -508,10 +519,12 @@ /** * Update right(s) for the given user(s) * - * - * @param array $data - * @param array $filters - * @return + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -525,10 +538,11 @@ /** * Revoke (remove) right(s) from the user(s) * - * - * @param array Array containing the filters on what right(s) - * should be removed from what user(s) - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -540,11 +554,11 @@ } /** - * Add translation - * + * Add a translation * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the users table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -555,19 +569,18 @@ return $result; } - /** - * Update translation - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all translations will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update translations + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all translations will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateTranslation($data, $filters) { $result = $this->_storage->update('translations', $data, $filters); @@ -576,11 +589,13 @@ } /** - * Remove translation(s) + * Remove translations * - * @param array Array containing the filters on what tranlation(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all translations will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -600,10 +615,14 @@ * Makes the filters used by the remove functions and also * checks if there is actually something that needs removing. * - * @param mixed $filteres - * @param string $key - * @param string $method - * @return array + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @param string name of the column for which we require a filter to be set + * @param string name of the method that should be used to determine the filter + * @return integer|array|boolean 0, an array containing the filter for the key + * or false on error * * @access private */ @@ -642,10 +661,25 @@ /** * This function holds up most of the heat for all the get* functions. * - * @param array $params - * @param string $root_table - * @param array $selectable_tables - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @param string name of the table from which to start looking + * for join points + * @param array list of tables that may be joined to + * @return boolean|array false on failure or array with selected data * * @access private */ @@ -684,9 +718,22 @@ /** * Fetches users * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -701,10 +748,22 @@ /** * Fetches rights * - * the array expected should follow the form of - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -719,9 +778,22 @@ /** * Fetches areas * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -736,9 +808,24 @@ /** * Fetches applications * + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data + * * @access public - * @param array $params - * @return */ function getApplications($params = array()) { @@ -751,9 +838,22 @@ /** * Fetches translations * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -787,7 +887,8 @@ * @param string type of output (constant or array) * @param array options for constants generation * @param string output mode desired (file or direct) - * @return mixed boolean, array or DB Error object + * @return boolean|array depending on the type an array with the data or + * a boolean denoting success or failure * * @access public */ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/DB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Perm/Storage/DB.php diff -u pear/LiveUser_Admin/Perm/Storage/DB.php:1.13 pear/LiveUser_Admin/Perm/Storage/DB.php:1.14 --- pear/LiveUser_Admin/Perm/Storage/DB.php:1.13 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Storage/DB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.14 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/MDB.php?r1=1.10&r2=1.11&ty=u Index: pear/LiveUser_Admin/Perm/Storage/MDB.php diff -u pear/LiveUser_Admin/Perm/Storage/MDB.php:1.10 pear/LiveUser_Admin/Perm/Storage/MDB.php:1.11 --- pear/LiveUser_Admin/Perm/Storage/MDB.php:1.10 Mon Nov 14 03:28:35 2005 +++ pear/LiveUser_Admin/Perm/Storage/MDB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.10 2005/11/14 08:28:35 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.11 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/MDB2.php?r1=1.25&r2=1.26&ty=u Index: pear/LiveUser_Admin/Perm/Storage/MDB2.php diff -u pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.25 pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.26 --- pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.25 Mon Nov 14 03:28:36 2005 +++ pear/LiveUser_Admin/Perm/Storage/MDB2.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.25 2005/11/14 08:28:36 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.26 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/DB.php?r1=1.18&r2=1.19&ty=u Index: pear/LiveUser_Admin/Storage/DB.php diff -u pear/LiveUser_Admin/Storage/DB.php:1.18 pear/LiveUser_Admin/Storage/DB.php:1.19 --- pear/LiveUser_Admin/Storage/DB.php:1.18 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/DB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.18 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.19 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::DB connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB.php?r1=1.18&r2=1.19&ty=u Index: pear/LiveUser_Admin/Storage/MDB.php diff -u pear/LiveUser_Admin/Storage/MDB.php:1.18 pear/LiveUser_Admin/Storage/MDB.php:1.19 --- pear/LiveUser_Admin/Storage/MDB.php:1.18 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/MDB.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.18 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.19 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::MDB connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB2.php?r1=1.22&r2=1.23&ty=u Index: pear/LiveUser_Admin/Storage/MDB2.php diff -u pear/LiveUser_Admin/Storage/MDB2.php:1.22 pear/LiveUser_Admin/Storage/MDB2.php:1.23 --- pear/LiveUser_Admin/Storage/MDB2.php:1.22 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/MDB2.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.22 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.23 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::MDB2 connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/SQL.php?r1=1.45&r2=1.46&ty=u Index: pear/LiveUser_Admin/Storage/SQL.php diff -u pear/LiveUser_Admin/Storage/SQL.php:1.45 pear/LiveUser_Admin/Storage/SQL.php:1.46 --- pear/LiveUser_Admin/Storage/SQL.php:1.45 Tue Nov 15 06:50:43 2005 +++ pear/LiveUser_Admin/Storage/SQL.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: SQL.php,v 1.45 2005/11/15 11:50:43 lsmith Exp $ + * @version CVS: $Id: SQL.php,v 1.46 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -80,7 +80,7 @@ * &$conn (PEAR::MDB2 connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt @@ -159,6 +159,7 @@ ); return false; } + $fields[] = $this->alias[$field]; $value_quoted = $this->quote($value, $this->fields[$field]); if ($value_quoted === false) {
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Admin.php?r1=1.52&r2=1.53&ty=u Index: pear/LiveUser_Admin/Admin.php diff -u pear/LiveUser_Admin/Admin.php:1.52 pear/LiveUser_Admin/Admin.php:1.53 --- pear/LiveUser_Admin/Admin.php:1.52 Thu Nov 10 02:36:24 2005 +++ pear/LiveUser_Admin/Admin.php Wed Nov 16 08:20:21 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Admin.php,v 1.52 2005/11/10 07:36:24 lsmith Exp $ + * @version CVS: $Id: Admin.php,v 1.53 2005/11/16 13:20:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -96,10 +96,10 @@ * @see LiveUser::factory() * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Arnaud Limbourg <arnaud@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage.php?r1=1.10&r2=1.11&ty=u Index: pear/LiveUser_Admin/Storage.php diff -u pear/LiveUser_Admin/Storage.php:1.10 pear/LiveUser_Admin/Storage.php:1.11 --- pear/LiveUser_Admin/Storage.php:1.10 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage.php Wed Nov 16 08:20:21 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Storage.php,v 1.10 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: Storage.php,v 1.11 2005/11/16 13:20:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -66,7 +66,7 @@ * for internal use only. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Common.php?r1=1.21&r2=1.22&ty=u Index: pear/LiveUser_Admin/Auth/Common.php diff -u pear/LiveUser_Admin/Auth/Common.php:1.21 pear/LiveUser_Admin/Auth/Common.php:1.22 --- pear/LiveUser_Admin/Auth/Common.php:1.21 Mon Nov 14 03:28:31 2005 +++ pear/LiveUser_Admin/Auth/Common.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Common.php,v 1.21 2005/11/14 08:28:31 lsmith Exp $ + * @version CVS: $Id: Common.php,v 1.22 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -65,7 +65,7 @@ * Base class for authentication backends. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt @@ -158,7 +158,7 @@ } /** - * Load the storage container + * Initialize the storage container * * @access public * @param array contains configuration of the container @@ -266,7 +266,7 @@ * Add a user * * @param array containing atleast the key-value-pairs of all required - * columns in the user table + * columns in the users table * @return integer|boolean false on error, true (or new id) on success * * @access public @@ -286,6 +286,9 @@ * * @param array containing the key value pairs of columns to update * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update * @return integer|boolean false on error, the affected rows on success * * @access public @@ -304,6 +307,9 @@ * Remove a user * * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update * @return integer|boolean false on error, the affected rows on success * * @access public http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/DB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/DB.php diff -u pear/LiveUser_Admin/Auth/DB.php:1.13 pear/LiveUser_Admin/Auth/DB.php:1.14 --- pear/LiveUser_Admin/Auth/DB.php:1.13 Mon Nov 14 03:20:12 2005 +++ pear/LiveUser_Admin/Auth/DB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:12 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -78,7 +78,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Bjoern Kraus <krausbn@php.net> * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/MDB.php diff -u pear/LiveUser_Admin/Auth/MDB.php:1.13 pear/LiveUser_Admin/Auth/MDB.php:1.14 --- pear/LiveUser_Admin/Auth/MDB.php:1.13 Mon Nov 14 03:20:13 2005 +++ pear/LiveUser_Admin/Auth/MDB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:13 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ /** @@ -77,7 +77,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB2.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Auth/MDB2.php diff -u pear/LiveUser_Admin/Auth/MDB2.php:1.13 pear/LiveUser_Admin/Auth/MDB2.php:1.14 --- pear/LiveUser_Admin/Auth/MDB2.php:1.13 Mon Nov 14 03:20:13 2005 +++ pear/LiveUser_Admin/Auth/MDB2.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:20:13 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.14 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * It does not contain any logic and simply extends the common driver * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/DB.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/DB.php diff -u pear/LiveUser_Admin/Auth/Storage/DB.php:1.6 pear/LiveUser_Admin/Auth/Storage/DB.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/DB.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/DB.php Wed Nov 16 08:20:24 2005 @@ -47,7 +47,7 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Markus Wolff <wolff@21st.de> * @permor Helgi Þormar Þorbjörnsson <dufuz@php.net> * @permor Lukas Smith <smith@pooteeweet.org> @@ -57,7 +57,7 @@ * @permor 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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/MDB.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/MDB.php diff -u pear/LiveUser_Admin/Auth/Storage/MDB.php:1.6 pear/LiveUser_Admin/Auth/Storage/MDB.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/MDB.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/MDB.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/Storage/MDB2.php?r1=1.6&r2=1.7&ty=u Index: pear/LiveUser_Admin/Auth/Storage/MDB2.php diff -u pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.6 pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.7 --- pear/LiveUser_Admin/Auth/Storage/MDB2.php:1.6 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Auth/Storage/MDB2.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.6 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.7 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.73&r2=1.74&ty=u Index: pear/LiveUser_Admin/Perm/Complex.php diff -u pear/LiveUser_Admin/Perm/Complex.php:1.73 pear/LiveUser_Admin/Perm/Complex.php:1.74 --- pear/LiveUser_Admin/Perm/Complex.php:1.73 Mon Nov 14 03:28:33 2005 +++ pear/LiveUser_Admin/Perm/Complex.php Wed Nov 16 08:20:24 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Complex.php,v 1.73 2005/11/14 08:28:33 lsmith Exp $ + * @version CVS: $Id: Complex.php,v 1.74 2005/11/16 13:20:24 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -74,7 +74,7 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Christian Dickmann <dickmann@php.net> * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> @@ -622,7 +622,7 @@ * Where 1 is the group_id * * @param array $params - * @return boolean | array + * @return boolean|array * * @access public */ @@ -653,7 +653,7 @@ * Helper method to fetch all groups including the subgroups * * @param array $params - * @return boolean | array + * @return boolean|array * * @access private */ @@ -710,7 +710,7 @@ * hierarchy tree structure * * @param array $params - * @return boolean | array + * @return boolean|array * * @access private */ @@ -772,7 +772,7 @@ * * * @param array $params - * @return boolean | array + * @return boolean|array * * @access public */ @@ -890,7 +890,7 @@ * * * @param array $params - * @return boolean | array false for error and array with impliedRights on success + * @return boolean|array false for error and array with impliedRights on success * * @access private */ @@ -920,7 +920,7 @@ * * * @param array $params - * @return boolean | array false for error and array with inheritedRights on success + * @return boolean|array false for error and array with inheritedRights on success * * @access private */ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Medium.php?r1=1.46&r2=1.47&ty=u Index: pear/LiveUser_Admin/Perm/Medium.php diff -u pear/LiveUser_Admin/Perm/Medium.php:1.46 pear/LiveUser_Admin/Perm/Medium.php:1.47 --- pear/LiveUser_Admin/Perm/Medium.php:1.46 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Medium.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: Medium.php,v 1.46 2005/11/14 08:28:34 lsmith Exp $ + * @version $Id: Medium.php,v 1.47 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -78,10 +78,10 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> * @author Bjoern Kraus <krausbn@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ @@ -121,19 +121,19 @@ return $result; } - /** - * Update group - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all groups will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update group - This will update the liveuser_perm_users table + * + * + * @param array associative array in the form of $fieldname => $data + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all groups will be affected by the update + * @return mixed false on error, the affected rows on success + * + * @access public + */ function updateGroup($data, $filters) { $result = $this->_storage->update('groups', $data, $filters); http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Simple.php?r1=1.69&r2=1.70&ty=u Index: pear/LiveUser_Admin/Perm/Simple.php diff -u pear/LiveUser_Admin/Perm/Simple.php:1.69 pear/LiveUser_Admin/Perm/Simple.php:1.70 --- pear/LiveUser_Admin/Perm/Simple.php:1.69 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Simple.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Simple.php,v 1.69 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: Simple.php,v 1.70 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,10 +71,10 @@ * backends/containers must be extensions of this base class. * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> * @author Bjoern Kraus <krausbn@php.net> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt * @version Release: @package_version@ @@ -98,6 +98,12 @@ */ var $_storage = null; + /** + * Key (method names), with array lists of selectable tables for the given method + * + * @var array + * @access public + */ var $selectable_tables = array( 'getUsers' => array('perm_users', 'userrights', 'rights'), 'getRights' => array('rights', 'userrights', 'translations', 'areas', 'applications'), @@ -106,6 +112,13 @@ 'getTranslations' => array('translations'), ); + /** + * Key (field name), with method names as values to determine what method + * should be called to get data when the 'with' option is used in a get*() method + * + * @var array + * @access public + */ var $withFieldMethodMap = array( 'perm_user_id' => 'getUsers', 'right_id' => 'getRights', @@ -122,11 +135,12 @@ } /** - * Load the storage container + * Initialize the storage container + * + * @param array array containing the configuration. + * @return boolean true on success or false on failure * * @access public - * @param mixed Name of array containing the configuration. - * @return boolean true on success or false on failure */ function init(&$conf) { @@ -158,11 +172,11 @@ } /** - * Add user + * Add a user * - * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the perm_users table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -177,19 +191,18 @@ return $result; } - /** - * Update user - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all users will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update users + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateUser($data, $filters) { $result = $this->_storage->update('perm_users', $data, $filters); @@ -198,15 +211,15 @@ } /** - * Remove user - * + * Remove users * - * @param array Array containing the filters on what user(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the removed + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::revokeUserRight */ function removeUser($filters) { @@ -226,10 +239,11 @@ } /** - * Add right + * Add a right * - * @param array associative array in the form of $fieldname => $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the rights table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -240,20 +254,18 @@ return $result; } - /** - * Update right - * - * Use this to update a right's information - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all rights will be affected by the update - * @return int|false the affected rows on success or false on error - * - * @access public - */ + /** + * Update rights + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all rights will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateRight($data, $filters) { $result = $this->_storage->update('rights', $data, $filters); @@ -262,14 +274,15 @@ } /** - * Remove right + * Remove rights * - * @param array Array containing the filters on what right(s) - * should be removed - * @return false|int false on error + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all rights will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::revokeUserRight */ function removeRight($filters) { @@ -289,11 +302,11 @@ } /** - * Add area + * Add an area * - * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the areas table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -304,19 +317,18 @@ return $result; } - /** - * Update area - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all areas will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update areas + * + * @param array associative array in the form of $fieldname => $data + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all areas will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateArea($data, $filters) { $result = $this->_storage->update('areas', $data, $filters); @@ -344,9 +356,11 @@ * $foo = $admin->perm->removeArea($filters); * </code> * - * @param array Array containing the filters on what area(s) - * should be removed - * @return + * @param array associative array in the form of $fieldname => $data + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all areas will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public * @uses LiveUser_Admin_Perm_Simple::removeRight @@ -371,7 +385,6 @@ /** * Set current application * - * * @param integer id of application * @return boolean always true * @@ -387,7 +400,6 @@ /** * Get current application * - * * @return string name of the current application * * @access public @@ -398,11 +410,11 @@ } /** - * Add application - * + * Add an application * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the applications table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -413,19 +425,18 @@ return $result; } - /** - * Update application - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all applications will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update applications + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all applictions will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateApplication($data, $filters) { $result = $this->_storage->update('applications', $data, $filters); @@ -434,15 +445,15 @@ } /** - * Remove application(s) + * Remove applications * - * - * @param array Array containing the filters on what application(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all applications will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public - * @uses LiveUser_Admin_Perm_Simple::removeArea */ function removeApplication($filters) { @@ -473,7 +484,7 @@ * $lua->perm->grantUserRight($data); * </code> * - * @param array $data + * @param array containing the perm_user_id and right_id and optionally a right_level * @return * * @access public @@ -508,10 +519,12 @@ /** * Update right(s) for the given user(s) * - * - * @param array $data - * @param array $filters - * @return + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -525,10 +538,11 @@ /** * Revoke (remove) right(s) from the user(s) * - * - * @param array Array containing the filters on what right(s) - * should be removed from what user(s) - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -540,11 +554,11 @@ } /** - * Add translation - * + * Add a translation * - * @param array $data - * @return + * @param array containing atleast the key-value-pairs of all required + * columns in the users table + * @return integer|boolean false on error, true (or new id) on success * * @access public */ @@ -555,19 +569,18 @@ return $result; } - /** - * Update translation - This will update the liveuser_perm_users table - * - * - * @param array associative array in the form of $fieldname => $data - * @param array associative array in the form of $fieldname => $data - * This will construct the WHERE clause of your update - * Be careful, if you leave this blank no WHERE clause - * will be used and all translations will be affected by the update - * @return mixed false on error, the affected rows on success - * - * @access public - */ + /** + * Update translations + * + * @param array containing the key value pairs of columns to update + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all translations will be affected by the update + * @return integer|boolean false on error, the affected rows on success + * + * @access public + */ function updateTranslation($data, $filters) { $result = $this->_storage->update('translations', $data, $filters); @@ -576,11 +589,13 @@ } /** - * Remove translation(s) + * Remove translations * - * @param array Array containing the filters on what tranlation(s) - * should be removed - * @return + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all translations will be affected by the remove + * @return integer|boolean false on error, the affected rows on success * * @access public */ @@ -600,10 +615,14 @@ * Makes the filters used by the remove functions and also * checks if there is actually something that needs removing. * - * @param mixed $filteres - * @param string $key - * @param string $method - * @return array + * @param array key values pairs (value may be a string or an array) + * This will construct the WHERE clause of your update + * Be careful, if you leave this blank no WHERE clause + * will be used and all users will be affected by the update + * @param string name of the column for which we require a filter to be set + * @param string name of the method that should be used to determine the filter + * @return integer|array|boolean 0, an array containing the filter for the key + * or false on error * * @access private */ @@ -642,10 +661,25 @@ /** * This function holds up most of the heat for all the get* functions. * - * @param array $params - * @param string $root_table - * @param array $selectable_tables - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @param string name of the table from which to start looking + * for join points + * @param array list of tables that may be joined to + * @return boolean|array false on failure or array with selected data * * @access private */ @@ -684,9 +718,22 @@ /** * Fetches users * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -701,10 +748,22 @@ /** * Fetches rights * - * the array expected should follow the form of - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -719,9 +778,22 @@ /** * Fetches areas * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -736,9 +808,24 @@ /** * Fetches applications * + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data + * * @access public - * @param array $params - * @return */ function getApplications($params = array()) { @@ -751,9 +838,22 @@ /** * Fetches translations * - * - * @param array $params - * @return + * @param array containing key-value pairs for: + * 'fields' - ordered array containing the fields to fetch + * if empty all fields from the user table are fetched + * 'filters' - key values pairs (value may be a string or an array) + * 'orders' - key value pairs (values 'ASC' or 'DESC') + * 'rekey' - if set to true, returned array will have the + * first column as its first dimension + * 'group' - if set to true and $rekey is set to true, then + * all values with the same first column will be + * wrapped in an array + * 'limit' - number of rows to select + * 'offset' - first row to select + * 'select' - determines what query method to use: + * 'one' -> queryOne, 'row' -> queryRow, + * 'col' -> queryCol, 'all' ->queryAll (default) + * @return boolean|array false on failure or array with selected data * * @access public */ @@ -787,7 +887,8 @@ * @param string type of output (constant or array) * @param array options for constants generation * @param string output mode desired (file or direct) - * @return mixed boolean, array or DB Error object + * @return boolean|array depending on the type an array with the data or + * a boolean denoting success or failure * * @access public */ http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/DB.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser_Admin/Perm/Storage/DB.php diff -u pear/LiveUser_Admin/Perm/Storage/DB.php:1.13 pear/LiveUser_Admin/Perm/Storage/DB.php:1.14 --- pear/LiveUser_Admin/Perm/Storage/DB.php:1.13 Mon Nov 14 03:28:34 2005 +++ pear/LiveUser_Admin/Perm/Storage/DB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.13 2005/11/14 08:28:34 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.14 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -71,7 +71,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/MDB.php?r1=1.10&r2=1.11&ty=u Index: pear/LiveUser_Admin/Perm/Storage/MDB.php diff -u pear/LiveUser_Admin/Perm/Storage/MDB.php:1.10 pear/LiveUser_Admin/Perm/Storage/MDB.php:1.11 --- pear/LiveUser_Admin/Perm/Storage/MDB.php:1.10 Mon Nov 14 03:28:35 2005 +++ pear/LiveUser_Admin/Perm/Storage/MDB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.10 2005/11/14 08:28:35 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.11 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Storage/MDB2.php?r1=1.25&r2=1.26&ty=u Index: pear/LiveUser_Admin/Perm/Storage/MDB2.php diff -u pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.25 pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.26 --- pear/LiveUser_Admin/Perm/Storage/MDB2.php:1.25 Mon Nov 14 03:28:36 2005 +++ pear/LiveUser_Admin/Perm/Storage/MDB2.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.25 2005/11/14 08:28:36 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.26 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -72,7 +72,7 @@ * All it does is read the Globals.php file and the container and database config on * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @permor Lukas Smith <smith@pooteeweet.org> * @permor Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/DB.php?r1=1.18&r2=1.19&ty=u Index: pear/LiveUser_Admin/Storage/DB.php diff -u pear/LiveUser_Admin/Storage/DB.php:1.18 pear/LiveUser_Admin/Storage/DB.php:1.19 --- pear/LiveUser_Admin/Storage/DB.php:1.18 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/DB.php Wed Nov 16 08:20:25 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.18 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.19 2005/11/16 13:20:25 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::DB connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB.php?r1=1.18&r2=1.19&ty=u Index: pear/LiveUser_Admin/Storage/MDB.php diff -u pear/LiveUser_Admin/Storage/MDB.php:1.18 pear/LiveUser_Admin/Storage/MDB.php:1.19 --- pear/LiveUser_Admin/Storage/MDB.php:1.18 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/MDB.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.18 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.19 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::MDB connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB2.php?r1=1.22&r2=1.23&ty=u Index: pear/LiveUser_Admin/Storage/MDB2.php diff -u pear/LiveUser_Admin/Storage/MDB2.php:1.22 pear/LiveUser_Admin/Storage/MDB2.php:1.23 --- pear/LiveUser_Admin/Storage/MDB2.php:1.22 Mon Nov 14 03:28:37 2005 +++ pear/LiveUser_Admin/Storage/MDB2.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @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.22 2005/11/14 08:28:37 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.23 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -81,7 +81,7 @@ * array('connection' => &$conn) ($conn is a PEAR::MDB2 connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/SQL.php?r1=1.45&r2=1.46&ty=u Index: pear/LiveUser_Admin/Storage/SQL.php diff -u pear/LiveUser_Admin/Storage/SQL.php:1.45 pear/LiveUser_Admin/Storage/SQL.php:1.46 --- pear/LiveUser_Admin/Storage/SQL.php:1.45 Tue Nov 15 06:50:43 2005 +++ pear/LiveUser_Admin/Storage/SQL.php Wed Nov 16 08:20:26 2005 @@ -47,17 +47,17 @@ * * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Markus Wolff <wolff@21st.de> - * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> + * @author Helgi Þormar Þorbjörnsson <dufuz@php.net> * @author Lukas Smith <smith@pooteeweet.org> - * @author Arnaud Limbourg <arnaud@php.net> + * @author Arnaud Limbourg <arnaud@php.net> * @author Christian Dickmann <dickmann@php.net> * @author Matt Scifo <mscifo@php.net> * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: SQL.php,v 1.45 2005/11/15 11:50:43 lsmith Exp $ + * @version CVS: $Id: SQL.php,v 1.46 2005/11/16 13:20:26 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -80,7 +80,7 @@ * &$conn (PEAR::MDB2 connection object) * * @category authentication - * @package LiveUser_Admin + * @package LiveUser_Admin * @author Lukas Smith <smith@pooteeweet.org> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt @@ -159,6 +159,7 @@ ); return false; } + $fields[] = $this->alias[$field]; $value_quoted = $this->quote($value, $this->fields[$field]); if ($value_quoted === false) {