本文整理匯總了PHP中Flyspray::ListGroups方法的典型用法代碼示例。如果您正苦於以下問題:PHP Flyspray::ListGroups方法的具體用法?PHP Flyspray::ListGroups怎麽用?PHP Flyspray::ListGroups使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Flyspray
的用法示例。
在下文中一共展示了Flyspray::ListGroups方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: area_prefs
function area_prefs()
{
global $page, $user, $fs;
$page->assign('groups', Flyspray::ListGroups());
$page->assign('all_groups', Flyspray::listallGroups($user->id));
$page->assign('theuser', $user);
$page->setTitle($fs->prefs['page_title'] . L('editmydetails'));
}
示例2: L
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':
case 'os':
case 'prefs':
case 'resolution':
case 'tasktype':
case 'status':
case 'version':
case 'newgroup':
$page->setTitle($fs->prefs['page_title'] . L('admintoolboxlong'));
$page->pushTpl('admin.' . $area . '.tpl');
break;
case 'translations':
示例3: die
\********************************************************/
if (!defined('IN_FS')) {
die('Do not access this file directly.');
}
if (!$user->perms('manage_project') || !$proj->id) {
Flyspray::show_error(16);
}
switch ($area = Req::val('area', 'prefs')) {
case 'pendingreq':
$sql = $db->Query("SELECT *\n FROM {admin_requests} ar\n LEFT JOIN {tasks} t ON ar.task_id = t.task_id\n LEFT JOIN {users} u ON ar.submitted_by = u.user_id\n WHERE ar.project_id = ? AND resolved_by = 0\n ORDER BY ar.time_submitted ASC", array($proj->id));
$page->assign('pendings', $db->fetchAllArray($sql));
case 'prefs':
case 'groups':
$page->assign('globalgroups', Flyspray::ListGroups(0));
# global user groups
$page->assign('groups', Flyspray::ListGroups($proj->id));
# project specific user groups
# project specific user groups
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 'tasktype':
case 'tag':
case 'resolution':