本文整理匯總了PHP中CEvent::getError方法的典型用法代碼示例。如果您正苦於以下問題:PHP CEvent::getError方法的具體用法?PHP CEvent::getError怎麽用?PHP CEvent::getError使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CEvent
的用法示例。
在下文中一共展示了CEvent::getError方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: clash_mail
function clash_mail(CAppUI $AppUI)
{
$obj = new CEvent();
if (!$obj->bind($_SESSION['add_event_post'])) {
$AppUI->setMsg($obj->getError(), UI_MSG_ERROR);
} else {
$obj->notify($_SESSION['add_event_post']['event_assigned'], w2PgetParam($_REQUEST, 'event_id', 0) ? false : true, true);
$AppUI->setMsg('Mail sent', UI_MSG_OK);
}
clear_clash();
$AppUI->redirect();
}
示例2: die
<?php
/* $Id$ $URL$ */
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
$del = (int) w2PgetParam($_POST, 'del', 0);
$obj = new CEvent();
if (!$obj->bind($_POST)) {
$AppUI->setMsg($obj->getError(), UI_MSG_ERROR);
$AppUI->redirect();
}
if ($obj->event_start_date) {
$start_date = new w2p_Utilities_Date($obj->event_start_date . $_POST['start_time']);
$obj->event_start_date = $start_date->format(FMT_DATETIME_MYSQL);
}
if ($obj->event_end_date) {
$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();
示例3: clash_mail
function clash_mail()
{
global $AppUI;
$obj = new CEvent();
if (!$obj->bind($_SESSION['add_event_post'])) {
$AppUI->setMsg($obj->getError(), UI_MSG_ERROR);
} else {
$obj->notify(@$_SESSION['add_event_attendees'], $_REQUEST['event_id'] ? false : true, true);
$AppUI->setMsg("Mail sent", UI_MSG_OK);
}
clear_clash();
$AppUI->redirect();
}