本文整理汇总了PHP中Events::deleteEvent方法的典型用法代码示例。如果您正苦于以下问题:PHP Events::deleteEvent方法的具体用法?PHP Events::deleteEvent怎么用?PHP Events::deleteEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Events
的用法示例。
在下文中一共展示了Events::deleteEvent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Events
require_once "Events.php";
if (isset($_POST["search"])) {
$events = new Events();
$result = $events->searchEvent();
echo $result;
}
if (isset($_POST["join"])) {
$events = new Events();
$result = $events->joinEvent();
echo $result;
}
if (isset($_POST["leave"])) {
$events = new Events();
$result = $events->leaveEvent();
echo $result;
}
if (isset($_POST["isMember"])) {
$events = new Events();
$result = $events->isMember();
echo $result;
}
if (isset($_POST["editEvent"])) {
$events = new Events();
$result = $events->editEvent();
echo $result;
}
if (isset($_POST["delete"])) {
$events = new Events();
$result = $events->deleteEvent();
echo $result;
}
示例2: deleteEvent
function deleteEvent()
{
global $error;
$arr_submit = array(array('event_id', 'int', true, ''), array('rep_event_id', 'int', false, ''), array('delete_all', 'bool', false, ''));
$frm_submitted = validate_var($arr_submit);
if (empty($error)) {
$bln_deleted = Events::deleteEvent($frm_submitted);
} else {
$bln_deleted = false;
}
echo json_encode(array('success' => $bln_deleted));
exit;
}