Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #5453 return of getRight() method
Submitted: 2005-09-19 14:45 UTC
From: l dot nienhaus at gmail dot com Assigned: lsmith
Status: Closed Package: LiveUser_Admin
PHP Version: 4.3.0 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-19 14:45 UTC] l dot nienhaus at gmail dot com
Description: ------------ When using Perm_Simple or Perm_Medium Container, the getRights() method returns the result as an array with incrementing indexes when switching to Perm_Complex it occured, that the return array has the right_ids as indexes Test script: --------------- $result = $lu_admin->perm->getRights(...) Expected result: ---------------- //expected result like in perm_simple & perm_medium: $result = array(0 => array(rightstuff), 1 => array(rightstuff), ...); Actual result: -------------- //perm_complex: $result = array(first_right_id => array(rightstuff), second_right_id => array(rightstuff), ...);

Comments

 [2005-09-20 23:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-09-20 23:36 UTC] l dot nienhaus at gmail dot com
voilĂ , tell me if you need more 'permContainer' => array('type' => 'Complex', 'storage' => array('DB' => array('dsn' => DSN, 'prefix' => 'liveuser_', 'tables' => array(), 'fields' => array(), 'alias' => array(), 'force_seq' => true, ), ), )
 [2005-09-20 23:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-09-20 23:53 UTC] l dot nienhaus at gmail dot com
Doesn't matter which arguments. A simple $lu_admin->perm->getRights() call does it, try switching vom Simple or Medium to Complex and compare the returned arrays. I think this bug is obvious, just have a look at the getRights method of the Complex container. http://cvs.php.net/co.php/pear/LiveUser_Admin/Perm/Complex.php?r=1.69#793 Normally lu-admin's get*() methods return arrays with incrementing indexes, this one does not.
 [2005-09-21 00:27 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-09-21 07:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-09-23 15:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!