當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tasks::assignGroup方法代碼示例

本文整理匯總了PHP中Tasks::assignGroup方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tasks::assignGroup方法的具體用法?PHP Tasks::assignGroup怎麽用?PHP Tasks::assignGroup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tasks的用法示例。


在下文中一共展示了Tasks::assignGroup方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ProcessMap

     G::LoadClass('processMap');
     $oProcessMap = new ProcessMap();
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('propeltable', 'paged-table', 'users/users_AvailableUsers', $oProcessMap->getAvailableUsersCriteria($_GET['sTask'], $_GET['iType']));
     G::RenderPage('publish', 'raw');
     break;
 case 'assign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ((int) $_POST['TU_RELATION']) {
         case 1:
             echo $oTasks->assignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
         case 2:
             echo $oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
     }
     break;
 case 'ofToAssign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ((int) $_POST['TU_RELATION']) {
         case 1:
             echo $oTasks->ofToAssignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
         case 2:
             echo $oTasks->ofToAssignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
     }
     break;
開發者ID:ralpheav,項目名稱:processmaker,代碼行數:31,代碼來源:users_Ajax.php

示例2: Tasks

     $sOutput = $oRoute->remove($oData->uid);
     echo $sOutput;
     break;
 case 'deleteEvent':
     $sOutput = $oEvent->remove($oData->uid);
     echo $sOutput;
     break;
 case 'assign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ($oData->TU_RELATION) {
         case 1:
             echo $oTasks->assignUser($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
         case 2:
             echo $oTasks->assignGroup($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
     }
     break;
 case 'ofToAssign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ($oData->TU_RELATION) {
         case 1:
             echo $oTasks->ofToAssignUser($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
         case 2:
             echo $oTasks->ofToAssignGroup($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
     }
     break;
開發者ID:nshong,項目名稱:processmaker,代碼行數:31,代碼來源:processes_Ajax.php


注:本文中的Tasks::assignGroup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。