当前位置: 首页>>代码示例>>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;未经允许,请勿转载。