当前位置: 首页>>代码示例>>PHP>>正文


PHP CTask::updateUserSpecificTaskPriority方法代码示例

本文整理汇总了PHP中CTask::updateUserSpecificTaskPriority方法的典型用法代码示例。如果您正苦于以下问题:PHP CTask::updateUserSpecificTaskPriority方法的具体用法?PHP CTask::updateUserSpecificTaskPriority怎么用?PHP CTask::updateUserSpecificTaskPriority使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CTask的用法示例。


在下文中一共展示了CTask::updateUserSpecificTaskPriority方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

                }
            }
        }
        if (isset($hassign) && !$del == 1) {
            $overAssignment = $obj->updateAssigned($hassign, $hperc_assign_ar, false, false);
            //check if OverAssignment occured, database has not been updated in this case
            if ($overAssignment) {
                $AppUI->setMsg('The following Users have not been assigned in order to prevent' . ' from Over-Assignment:', UI_MSG_ERROR);
                $AppUI->setMsg('<br />' . $overAssignment, UI_MSG_ERROR, true);
            } else {
                $AppUI->setMsg('User(s) assigned to Task', UI_MSG_OK);
            }
        }
        // process the user specific task priority
        if ($chUTP == 1) {
            $obj->updateUserSpecificTaskPriority($user_task_priority, $user_id);
            $AppUI->setMsg('User specific Task Priority updated', UI_MSG_OK, true);
        }
        if ($store == 1) {
            if ($msg = $obj->store()) {
                $AppUI->setMsg($msg, UI_MSG_ERROR, true);
            } else {
                $AppUI->setMsg('Task(s) updated', UI_MSG_OK, true);
            }
        }
    }
}
if ($rm && $del) {
    $AppUI->setMsg('User(s) unassigned from Task', UI_MSG_OK);
}
$AppUI->redirect();
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:do_task_assign_aed.php

示例2: CTask

 if (isset($_POST['bulk_task_allow_other_user_tasklogs']) && $bulk_task_allow_other_user_tasklogs != '') {
     $upd_task = new CTask();
     $upd_task->load($val);
     if ($upd_task->task_id) {
         $upd_task->task_allow_other_user_tasklogs = $bulk_task_allow_other_user_tasklogs;
         $result = $upd_task->store();
         if (!$result) {
             break;
         }
     }
 }
 //Action: Set user task priority for current user ($APPUI->userid)
 if ($upd_task->task_id && $bulk_task_user_priority != "") {
     $assigned_users = $upd_task->assignees($upd_task->task_id);
     if (array_key_exists("{$AppUI->user_id}", $assigned_users)) {
         $upd_task->updateUserSpecificTaskPriority($bulk_task_user_priority, $AppUI->user_id);
     }
 }
 //Action: Other Actions
 if (isset($_POST['bulk_task_other']) && $bulk_task_other != '') {
     if ($upd_task->task_id) {
         //Option 1 - Mark as finished
         if ($bulk_task_other == '1') {
             $upd_task->task_percent_complete = 100;
             if (!$upd_task->task_end_date || $upd_task->task_end_date == '0000-00-00 00:00:00') {
                 $end_date = null;
                 $end_date = new w2p_Utilities_Date();
                 $upd_task->task_end_date = $end_date->format(FMT_DATETIME_MYSQL);
             }
             $result = $upd_task->store();
             if (!$result) {
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:do_task_bulk_aed.php


注:本文中的CTask::updateUserSpecificTaskPriority方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。