本文整理汇总了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();
}