$group_filter[$i] = $ginfo['id'];
    }
    $cookietab = 1;
}
// Quick perms load {{{
//Quickperm groups stuff
if ($prefs['feature_quick_object_perms'] == 'y') {
    $groupNames = array();
    foreach ($groups['data'] as $key => $group) {
        $groupNames[] = $group['groupName'];
    }
    $qperms = quickperms_get_data();
    $smarty->assign('quickperms', $qperms);
    $quickperms = new Perms_Reflection_Quick();
    foreach ($qperms as $type => $data) {
        $quickperms->configure($type, $data['data']);
    }
    $displayedPermissions = get_displayed_permissions();
    $map = $quickperms->getAppliedPermissions($displayedPermissions, $groupNames);
    foreach ($groups['data'] as $key => $group) {
        $groups['data'][$key]['groupSumm'] = $map[$group['groupName']];
    }
}
//Quickperm END }}}
// get groupNames etc - TODO: jb will tidy...
//$checkboxInfo = array();
$permGroups = array();
$groupNames = array();
$groupIndices = array();
$groupInheritance = array();
foreach ($groups['data'] as &$row) {
示例#2
0
 function testRegisterUserDefinedIsIgnored()
 {
     $quick = new Perms_Reflection_Quick();
     $quick->configure('userdefined', array('view'));
     $expect = new Perms_Reflection_Quick();
     $this->assertEquals($expect, $quick);
 }