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


PHP CEvent::updateAssigned方法代碼示例

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


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

示例1: clash_accept

function clash_accept(CAppUI $AppUI)
{
    global $do_redirect;
    $AppUI->setMsg('Event');
    $obj = new CEvent();
    $obj->bind($_SESSION['add_event_post']);
    $GLOBALS['a'] = $_SESSION['add_event_caller'];
    $is_new = $obj->event_id == 0;
    $result = $obj->store($AppUI);
    if ($result) {
        if (isset($_SESSION['add_event_attendees']) && $_SESSION['add_event_attendees']) {
            $obj->updateAssigned(explode(',', $_SESSION['add_event_attendees']));
        }
        if (isset($_SESSION['add_event_mail']) && $_SESSION['add_event_mail'] == 'on') {
            $obj->notify($_SESSION['add_event_attendees'], !$is_new);
        }
        $AppUI->setMsg('Event Stored', UI_MSG_OK, true);
    } else {
        $AppUI->setMsg($msg, UI_MSG_ERROR);
    }
    clear_clash();
    $AppUI->redirect();
}
開發者ID:viniciusbudines,項目名稱:sisnuss,代碼行數:23,代碼來源:cleanup_functions.php

示例2:

    $end_date = new w2p_Utilities_Date($obj->event_end_date . $_POST['end_time']);
    $obj->event_end_date = $end_date->format(FMT_DATETIME_MYSQL);
}
$action = $del ? 'deleted' : 'stored';
$clashRedirect = false;
if ($del) {
    $result = $obj->delete();
} else {
    if ($_POST['event_assigned'] > '' && ($clash = $obj->checkClash($_POST['event_assigned']))) {
        $last_a = $a;
        $GLOBALS['a'] = "clash";
        $clashRedirect = true;
    } else {
        $result = $obj->store();
        if (isset($_POST['event_assigned'])) {
            $obj->updateAssigned(explode(',', $_POST['event_assigned']));
        }
        if (isset($_POST['mail_invited'])) {
            $obj->notify($_POST['event_assigned'], false);
        }
    }
}
//TODO: I hate this clash param.. there should be a better way.
if (!$clashRedirect) {
    if (is_array($result)) {
        $AppUI->setMsg($result, UI_MSG_ERROR, true);
        $AppUI->holdObject($obj);
        $AppUI->redirect('m=calendar&a=addedit');
    }
    if ($result) {
        $AppUI->setMsg('Event ' . $action, UI_MSG_OK, true);
開發者ID:caseysoftware,項目名稱:web2project-planner,代碼行數:31,代碼來源:do_event_aed.php

示例3: array

        $ev1->event_private = $event_private;
        //otherwise not shown in myevent filter in dayview/events
        $ev1->event_description = $event_descript;
    }
    $ev1->event_start_date = $start;
    $ev1->event_end_date = $end;
    $res = false;
    //
    $res = $ev1->store();
    //echo "0";
    if ($res) {
        echo "{$ev1->event_id}";
        $ass = array();
        $ass = $AppUI->user_id;
        if ($id == 0) {
            $ev1->updateAssigned($ass);
        }
    } else {
        echo "0";
    }
} else {
    $tsk = new CTask();
    $tsk->load($task_id);
    if ($do_task === "resize") {
        $tsk->task_end_date = $end;
    } else {
        if ($do_task === "drag") {
            $tsk->task_start_date = $start;
            $tsk->task_end_date = $end;
        } else {
            if ($do_task === "pcpl") {
開發者ID:caseysoftware,項目名稱:web2project-planner,代碼行數:31,代碼來源:test.php


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