cvs: pear /LiveUser/Perm Medium.php
| From: | Lukas Smith | Date: | Mon, 23 Jan 2006 12:40:27 +0000 |
| Subject: | cvs: pear /LiveUser/Perm Medium.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37715@lists.php.net to get a copy of this message | ||
lsmith Mon Jan 23 12:40:27 2006 UTC
Modified files:
/pear/LiveUser/Perm Medium.php
Log:
- added support for user_group_ids
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Perm/Medium.php?r1=1.18&r2=1.19&diff_format=u
Index: pear/LiveUser/Perm/Medium.php
diff -u pear/LiveUser/Perm/Medium.php:1.18 pear/LiveUser/Perm/Medium.php:1.19
--- pear/LiveUser/Perm/Medium.php:1.18 Fri Dec 2 08:23:05 2005
+++ pear/LiveUser/Perm/Medium.php Mon Jan 23 12:40:26 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: Medium.php,v 1.18 2005/12/02 08:23:05 lsmith Exp $
+ * @version CVS: $Id: Medium.php,v 1.19 2006/01/23 12:40:26 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -75,14 +75,21 @@
* One-dimensional array containing all the groups
* ids for the actual user.
*
- * Format: "RightId" => "Level"
- *
* @var array
* @access public
*/
var $group_ids = array();
/**
+ * One-dimensional array containing all the groups
+ * ids for the actual user without subgroups.
+ *
+ * @var array
+ * @access public
+ */
+ var $user_group_ids = array();
+
+ /**
* One-dimensional array containing only the group
* rights for the actual user.
*
@@ -165,14 +172,14 @@
*/
function readGroups($perm_user_id)
{
- $this->group_ids = array();
+ $this->group_ids = $this->user_group_ids = array();
$result = $this->_storage->readGroups($perm_user_id);
if ($result === false) {
return false;
}
- $this->group_ids = $result;
+ $this->group_ids = $this->user_group_ids = $result;
return $this->group_ids;
}