本文整理匯總了PHP中CTask::notify方法的典型用法代碼示例。如果您正苦於以下問題:PHP CTask::notify方法的具體用法?PHP CTask::notify怎麽用?PHP CTask::notify使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CTask
的用法示例。
在下文中一共展示了CTask::notify方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CTask
if (count($tmp) > 1) {
$hperc_assign_ar[$tmp[0]] = $tmp[1];
$bulk_task_assign .= $tmp[0] . ',';
} else {
$hperc_assign_ar[$tmp[0]] = 100;
$bulk_task_assign .= $tmp[0] . ',';
}
}
$upd_task = new CTask();
$upd_task->load($key);
if ($upd_task->task_id) {
$upd_task->updateAssigned($bulk_task_assign, $hperc_assign_ar, false, false);
}
//$upd_task->updateAssigned($bulk_task_assign,array($bulk_task_assign=>$bulk_task_assign_perc),false,false);
if ($upd_task->task_project && $upd_task->task_id && $upd_task->task_notify) {
$upd_task->notify();
}
}
//Action: Unassign User
if (isset($_POST['bulk_task_unassign']) && $bulk_task_unassign != '') {
$upd_task = new CTask();
$upd_task->load($key);
if ($upd_task->task_id) {
$upd_task->removeAssigned($bulk_task_unassign);
}
}
// Action: Allow user to add task logs for others
if (isset($_POST['bulk_task_allow_other_user_tasklogs']) && $bulk_task_allow_other_user_tasklogs != '') {
$upd_task = new CTask();
$upd_task->load($key);
if ($upd_task->task_id) {
示例2: CustomFields
$AppUI->setMsg($msg, UI_MSG_ERROR);
$AppUI->redirect();
// Store failed don't continue?
} else {
$custom_fields = new CustomFields($m, 'addedit', $obj->task_id, "edit");
$custom_fields->bind($_POST);
$sql = $custom_fields->store($obj->task_id);
// Store Custom Fields
$AppUI->setMsg($task_id ? 'Task updated' : 'Task added', UI_MSG_OK);
}
if (isset($hassign)) {
$obj->updateAssigned($hassign, $hperc_assign_ar);
}
if (isset($hdependencies)) {
$obj->updateDependencies($hdependencies);
}
// If there is a set of post_save functions, then we process them
if (isset($post_save)) {
foreach ($post_save as $post_save_function) {
$post_save_function();
}
}
if ($notify) {
if ($msg = $obj->notify($comment)) {
$AppUI->setMsg($msg, UI_MSG_ERROR);
}
}
$AppUI->redirect();
}
}
// end of if subform