當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Flyspray::getGroupDetails方法代碼示例

本文整理匯總了PHP中Flyspray::getGroupDetails方法的典型用法代碼示例。如果您正苦於以下問題:PHP Flyspray::getGroupDetails方法的具體用法?PHP Flyspray::getGroupDetails怎麽用?PHP Flyspray::getGroupDetails使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Flyspray的用法示例。


在下文中一共展示了Flyspray::getGroupDetails方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: area_editgroup

 /**
  * area_editgroup
  *
  * @access public
  * @return void
  */
 function area_editgroup()
 {
     global $db, $page, $proj, $fs;
     $group = Flyspray::getGroupDetails(Req::num('group_id'));
     if (!$group || $group['project_id'] != $proj->id) {
         FlysprayDo::error(array(ERROR_RECOVER, L('groupnotexist'), CreateURL(array('pm', 'proj' . $proj->id, 'groups'))));
     }
     $newparams = array();
     foreach ($fs->perms as $perm) {
         $newparams[$perm] = $group[$perm];
     }
     $page->assign('newparams', $newparams);
     $page->assign('group', $group);
     $page->assign('groups', Flyspray::listGroups());
 }
開發者ID:negram,項目名稱:flyspray,代碼行數:21,代碼來源:admin.php

示例2: switch

switch ($area = Req::val('area', 'prefs')) {
    case 'users':
        $id = Flyspray::UserNameToId(Req::val('user_name'));
        if (!$id) {
            $id = Req::val('user_id');
        }
        $theuser = new User($id, $proj);
        if ($theuser->isAnon()) {
            Flyspray::show_error(5, true, null, $_SESSION['prev_page']);
        }
        $page->assign('theuser', $theuser);
    case 'cat':
    case 'editgroup':
        // yeah, utterly stupid, is changed in 1.0 already
        if (Req::val('area') == 'editgroup') {
            $group_details = Flyspray::getGroupDetails(Req::num('id'));
            if (!$group_details || $group_details['project_id'] != $proj->id) {
                Flyspray::show_error(L('groupnotexist'));
                Flyspray::Redirect(CreateURL('pm', 'groups', $proj->id));
            }
            $page->uses('group_details');
        }
    case 'groups':
    case 'newuser':
    case 'newuserbulk':
    case 'editallusers':
        $page->assign('groups', Flyspray::ListGroups());
    case 'userrequest':
        $sql = $db->Query("SELECT  *\n                             FROM  {admin_requests}\n                            WHERE  request_type = 3 AND project_id = 0 AND resolved_by = 0\n                         ORDER BY  time_submitted ASC");
        $page->assign('pendings', $db->fetchAllArray($sql));
    case 'newproject':
開發者ID:nathanburgess,項目名稱:flyspray,代碼行數:31,代碼來源:admin.php


注:本文中的Flyspray::getGroupDetails方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。