本文整理汇总了PHP中CTask::clearReminder方法的典型用法代码示例。如果您正苦于以下问题:PHP CTask::clearReminder方法的具体用法?PHP CTask::clearReminder怎么用?PHP CTask::clearReminder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTask
的用法示例。
在下文中一共展示了CTask::clearReminder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
if (is_array($result)) {
break;
}
//Option 5 - Mark as non dynamic
} elseif ($bulk_task_other == '5') {
$upd_task->task_dynamic = 0;
$result = $upd_task->store($AppUI);
if (is_array($result)) {
break;
}
//Option 6 - Add Task Reminder
} elseif ($bulk_task_other == '6') {
$upd_task->addReminder();
//Option 7 - Mark as non dynamic
} elseif ($bulk_task_other == '7') {
$upd_task->clearReminder(true);
//Option 8 - Mark as active
} elseif ($bulk_task_other == '8') {
$upd_task->task_status = '0';
$result = $upd_task->store($AppUI);
if (is_array($result)) {
break;
}
// Option 9 - Mark as inactive
} elseif ($bulk_task_other == '9') {
$upd_task->task_status = '-1';
$result = $upd_task->store($AppUI);
if (is_array($result)) {
break;
}
//Option 10 - Empty tasks description
示例2: CTask
$msg = '';
$obj = new CTask();
$obj->loadFull(null, $task_id);
if (!$obj) {
$AppUI->setMsg('Task');
$AppUI->setMsg('invalidID', UI_MSG_ERROR, true);
$AppUI->redirect();
} else {
$AppUI->savePlace();
}
if (!$obj->canAccess($AppUI->user_id)) {
$AppUI->redirect('m=public&a=access_denied');
}
// Clear any reminders
if ($reminded) {
$obj->clearReminder();
}
$tab = $AppUI->processIntState('TaskLogVwTab', $_GET, 'tab', 0);
//check permissions for the associated project
$canReadProject = canView('projects', $obj->task_project);
$users = $obj->getAssignedUsers($task_id);
$durnTypes = w2PgetSysVal('TaskDurationType');
$task_types = w2PgetSysVal('TaskType');
$billingCategory = w2PgetSysVal('BudgetCategory');
// setup the title block
$titleBlock = new w2p_Theme_TitleBlock('View Task', 'applet-48.png', $m, $m . '.' . $a);
$titleBlock->addCell();
if ($canEdit) {
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new task') . '">', '', '<form action="?m=tasks&a=addedit&task_project=' . $obj->task_project . '&task_parent=' . $task_id . '" method="post" accept-charset="utf-8">', '</form>');
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new file') . '">', '', '<form action="?m=files&a=addedit&project_id=' . $obj->task_project . '&file_task=' . $obj->task_id . '" method="post" accept-charset="utf-8">', '</form>');
}