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


PHP Tasks::ofToAssignGroup方法代碼示例

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


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

示例1: Tasks

             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;
 case 'changeView':
     $_SESSION['iType'] = $_POST['TU_TYPE'];
     break;
 case 'deleteGroup':
     G::LoadClass('groups');
     $oGroup = new Groups();
     $oGroup->removeUserOfGroup($_POST['GRP_UID'], $_POST['USR_UID']);
     $_GET['sUserUID'] = $_POST['USR_UID'];
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('view', 'users/users_Tree');
     G::RenderPage('publish', 'raw');
     break;
開發者ID:ralpheav,項目名稱:processmaker,代碼行數:31,代碼來源:users_Ajax.php

示例2: Tasks

             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;
 case 'saveSubprocessDetails':
     //$aTask=$oTask->load($_POST['form']['TASKS']);
     //$aTask=$oTask->load($_POST['form']['PRO_UID']);
     $out = array();
     $in = array();
     if (isset($_POST['VAR_OUT']) && $_POST['VAR_OUT'] != '') {
         $varOut = explode('|', $_POST['VAR_OUT']);
         $aVarOut1 = G::json_decode($varOut[0]);
         $aVarOut2 = G::json_decode($varOut[1]);
         for ($i = 1; $i <= count($aVarOut1); $i++) {
             $out[$aVarOut1[$i - 1]] = $aVarOut2[$i - 1];
         }
開發者ID:nshong,項目名稱:processmaker,代碼行數:31,代碼來源:processes_Ajax.php


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