本文整理匯總了PHP中group::del_member_request方法的典型用法代碼示例。如果您正苦於以下問題:PHP group::del_member_request方法的具體用法?PHP group::del_member_request怎麽用?PHP group::del_member_request使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類group
的用法示例。
在下文中一共展示了group::del_member_request方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: pg_new_edit
function pg_new_edit($pg)
{
$group = new group();
foreach ($pg as $gid => $persons) {
$group->load($gid);
if (!$group->is_head()) {
continue;
}
foreach ($persons as $pid => $decision) {
if ($decision == 0) {
continue;
}
$group->del_member_request($pid);
if ($decision == 1) {
continue;
}
$group->add_member($pid);
}
}
}
示例2: group
$output->secure();
$pid = $_SESSION['userid'];
$gid = (int) $_GET['gid'];
$group = new group();
if (!$group->load($gid)) {
redirect('./');
}
$action = '';
if (isset($_POST['action'])) {
$action = $_POST['action'];
}
if (isset($_GET['action'])) {
$action = $_GET['action'];
}
if ($action == 'join group') {
if ($group->is_head()) {
$group->add_member();
} else {
$group->member_request();
}
}
if ($action == 'leave group') {
if ($group->is_head() && isset($_GET['pid'])) {
$pid = $_GET['pid'];
}
$group->del_member($pid);
}
if ($action == 'remove request') {
$group->del_member_request($pid);
}
redirect('group.php?id=' . $gid);