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


PHP processMap::editProcessNew方法代碼示例

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


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

示例1: getProperties

 /**
  * Get process and task properties
  *
  * @param object $httpData{type, UID}
  */
 public function getProperties($httpData)
 {
     switch ($httpData->type) {
         case 'process':
             require_once 'classes/model/ProcessCategory.php';
             require_once 'classes/model/CalendarDefinition.php';
             G::LoadClass('processMap');
             $oProcessMap = new processMap(new DBConnection());
             $process = $oProcessMap->editProcessNew($httpData->UID);
             $category = ProcessCategoryPeer::retrieveByPk($process['PRO_CATEGORY']);
             $categoryName = is_object($category) ? $category->getCategoryName() : '';
             $calendar = CalendarDefinitionPeer::retrieveByPk($process['PRO_CALENDAR']);
             $calendarName = is_object($calendar) ? $calendar->getCalendarName() : '';
             $properties['Title'] = $process['PRO_TITLE'];
             $properties['Description'] = $process['PRO_DESCRIPTION'];
             $properties['Calendar'] = $calendarName;
             $properties['Category'] = $categoryName;
             $properties['Debug'] = $process['PRO_DEBUG'] == '1' ? true : false;
             $this->sucess = true;
             $this->prop = $properties;
             break;
         case 'task':
             require_once 'classes/model/Task.php';
             $task = new Task();
             $taskData = $task->load($httpData->UID);
             $properties['Title'] = $taskData['TAS_TITLE'];
             $properties['Description'] = $taskData['TAS_DESCRIPTION'];
             $properties['Variable for case priority'] = $taskData['TAS_PRIORITY_VARIABLE'];
             $properties['Starting Task'] = $taskData['TAS_START'] == 'TRUE' ? true : false;
             $this->sucess = true;
             $this->prop = $properties;
             break;
     }
 }
開發者ID:bqevin,項目名稱:processmaker,代碼行數:39,代碼來源:processProxy.php

示例2: count

     break;
 case 'getObjectPermission':
     $rows = $oProcessMap->getExtObjectsPermissions($start, $limit, $_GET['pid']);
     $result['totalCount'] = $oProcessMap->getAllObjectPermissionCount();
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'getObjectPermissionType':
     $rows = $oProcessMap->newExtObjectPermission($_GET['pid'], $_GET['objectType']);
     array_shift($rows);
     $result['totalCount'] = count($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'process_Edit':
     $rows = $oProcessMap->editProcessNew($_GET['pid']);
     $tmpData = G::json_encode($rows);
     $tmpData = str_replace("\\/", "/", '{success:true,data:' . $tmpData . '}');
     // unescape the slashes
     $result = $tmpData;
     echo $result;
     break;
 case 'getTriggersList':
     $rows = $oProcessMap->getExtTriggersList($start, $limit, $_GET['pid']);
     $result['totalCount'] = $oProcessMap->getAllTriggersCount();
     array_shift($rows);
     $result['data'] = $rows;
     print G::json_encode($result);
     break;
 case 'editTriggers':
     require_once 'classes/model/Triggers.php';
開發者ID:nshong,項目名稱:processmaker,代碼行數:31,代碼來源:proxyExtjs.php


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