本文整理汇总了PHP中Groups::deleteGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP Groups::deleteGroup方法的具体用法?PHP Groups::deleteGroup怎么用?PHP Groups::deleteGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Groups
的用法示例。
在下文中一共展示了Groups::deleteGroup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Groups
require_once "Groups.php";
if (isset($_POST["search"])) {
$groups = new Groups();
$result = $groups->searchGroup();
echo $result;
}
if (isset($_POST["join"])) {
$groups = new Groups();
$result = $groups->joinGroup();
echo $result;
}
if (isset($_POST["leave"])) {
$groups = new Groups();
$result = $groups->leaveGroup();
echo $result;
}
if (isset($_POST["isMember"])) {
$groups = new Groups();
$result = $groups->isMember();
echo $result;
}
if (isset($_POST["editGroup"])) {
$groups = new Groups();
$result = $groups->editGroup();
echo $result;
}
if (isset($_POST["delete"])) {
$groups = new Groups();
$result = $groups->deleteGroup();
echo $result;
}
示例2: Groups
<?php
include_once "../includes/webservice.inc.php";
$webService = new Webservices_Writer();
$webService->init();
$obj = new Groups();
$data = isset($_POST['data']) ? $_POST['data'] : '';
if ($result = $obj->deleteGroup($data)) {
$webService->createXMLInstance();
$webService->appendArrayToRootNode('', $result);
$webService->displayXML();
} else {
$xmls = $webService->errorXML(join(",", $obj->errorMessages));
$webService->outputXML($xmls);
}
示例3: Groups
$groupManager = new Groups();
switch ($_POST['action']) {
case 'create':
$result = $groupManager->createGroup();
if (isset($result) && $result) {
echo $result;
} else {
echo 'UNKNOWN_ERROR';
}
break;
case 'modify':
Helper::checkPostParameter('group_id');
$result = $groupManager->modifyGroup($_POST['group_id'], $_POST);
if (isset($result) && $result) {
echo 'SUCCESS';
} else {
echo 'UNKNOWN_ERROR';
}
break;
case 'delete':
Helper::checkPostParameter('group_id');
$result = $groupManager->deleteGroup($_POST['group_id']);
if (isset($result) && $result) {
echo 'SUCCESS';
} else {
echo 'UNKNOWN_ERROR';
}
break;
}
}
}