Ejemplo n.º 1
0
function initializeGui(&$dbHandler, &$argsObj, $orderBy)
{
    $guiObj = new stdClass();
    $guiObj->highlight = initialize_tabsmenu();
    $guiObj->highlight->view_users = 1;
    $guiObj->update_title_bar = 0;
    $guiObj->reload = 0;
    $guiObj->user_order_by = $argsObj->user_order_by;
    $guiObj->order_by_role_dir = $argsObj->order_by_dir['order_by_role_dir'];
    $guiObj->order_by_login_dir = $argsObj->order_by_dir['order_by_login_dir'];
    $guiObj->checked_hide_inactive_users = $argsObj->checked_hide_inactive_users;
    $guiObj->base_href = $argsObj->basehref;
    $guiObj->body_onload = $argsObj->body_onload;
    $guiObj->role_colour = tlRole::getRoleColourCfg($dbHandler);
    $guiObj->users = tlUser::getAllUsersRoles($dbHandler, get_order_by_clause($orderBy));
    $guiObj->grants = $argsObj->currentUser->getGrantsForUserMgmt($dbHandler, $argsObj->tproject_id);
    $guiObj->tproject_id = $argsObj->tproject_id;
    return $guiObj;
}