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


PHP processMap::getAllProcesses方法代码示例

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


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

示例1:

     $sOutput = $oProcessMap->addText($oData->uid, $oData->label, $oData->position->x, $oData->position->y, $oData->task_uid);
     echo $sOutput;
     break;
 case 'updateText':
     $sOutput = $oProcessMap->updateText($oData->uid, $oData->label, $oData->next_uid);
     echo $sOutput;
     break;
 case 'saveTextPosition':
     $sOutput = $oProcessMap->saveTextPosition($oData->uid, $oData->position->x, $oData->position->y);
     break;
 case 'deleteText':
     $sOutput = $oProcessMap->deleteText($oData->uid);
     echo $sOutput;
     break;
 case 'getProcesses':
     $sOutput = $oProcessMap->getAllProcesses();
     echo $sOutput;
     break;
 case 'dynaforms':
     $sOutput = $oProcessMap->getDynaformList($oData->uid);
     $sOutput = $oJSON->encode($sOutput);
     echo $sOutput;
     break;
 case 'webEntry_validate':
     include PATH_METHODS . 'processes/processes_webEntryValidate.php';
     break;
 case 'webEntry_generate':
     include PATH_METHODS . 'processes/processes_webEntryGenerate.php';
     break;
 case 'webEntry':
     $sOutput = $oProcessMap->listNewWebEntry($oData->uid, $oData->evn_uid);
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:processes_Ajax.php

示例2: import

 /**
  * import a pm table
  *
  * @param string $httpData->id
  */
 public function import($httpData)
 {
     $fromAdmin = false;
     if (isset($_POST["form"]["TYPE_TABLE"]) && !empty($_POST["form"]["TYPE_TABLE"])) {
         if ($_POST["form"]["TYPE_TABLE"] == 'admin') {
             $fromAdmin = true;
         }
     }
     require_once 'classes/model/AdditionalTables.php';
     try {
         $result = new stdClass();
         $errors = '';
         $fromConfirm = false;
         $overWrite = isset($_POST['form']['OVERWRITE']) ? true : false;
         if (isset($_POST["form"]["FROM_CONFIRM"]) && !empty($_POST["form"]["FROM_CONFIRM"])) {
             $fromConfirm = $_POST["form"]["FROM_CONFIRM"];
             $_FILES['form'] = $_SESSION['FILES_FORM'];
         }
         //save the file
         if ($_FILES['form']['error']['FILENAME'] !== 0) {
             throw new Exception(G::loadTranslation('ID_PMTABLE_UPLOADING_FILE_PROBLEM'));
         }
         $_SESSION['FILES_FORM'] = $_FILES['form'];
         $oAdditionalTables = new AdditionalTables();
         $tableNameMap = array();
         $processQueue = array();
         $processQueueTables = array();
         $PUBLIC_ROOT_PATH = PATH_DATA . 'sites' . PATH_SEP . SYS_SYS . PATH_SEP . 'public' . PATH_SEP;
         $filename = $_FILES['form']['name']['FILENAME'];
         $tempName = $_FILES['form']['tmp_name']['FILENAME'];
         if (!$fromConfirm) {
             G::uploadFile($tempName, $PUBLIC_ROOT_PATH, $filename);
         }
         if ($fromConfirm == 'clear') {
             $fromConfirm = true;
         }
         $fileContent = file_get_contents($PUBLIC_ROOT_PATH . $filename);
         if (strpos($fileContent, '-----== ProcessMaker Open Source Private Tables ==-----') === false) {
             throw new Exception(G::loadTranslation('ID_PMTABLE_INVALID_FILE'));
         }
         $fp = fopen($PUBLIC_ROOT_PATH . $filename, "rb");
         $fsData = intval(fread($fp, 9));
         //reading the metadata
         $sType = fread($fp, $fsData);
         //Ask for all Process
         $processMap = new processMap();
         $aProcess = json_decode($processMap->getAllProcesses());
         foreach ($aProcess as $key => $val) {
             if ($val->value != '') {
                 $proUids[] = $val->value;
             }
         }
         // first create the tables structures
         while (!feof($fp)) {
             switch ($sType) {
                 case '@META':
                     $fsData = intval(fread($fp, 9));
                     $METADATA = fread($fp, $fsData);
                     break;
                 case '@SCHEMA':
                     $fsUid = intval(fread($fp, 9));
                     $uid = fread($fp, $fsUid);
                     $fsData = intval(fread($fp, 9));
                     $schema = fread($fp, $fsData);
                     $contentSchema = unserialize($schema);
                     $additionalTable = new additionalTables();
                     $tableExists = $additionalTable->loadByName($contentSchema['ADD_TAB_NAME']);
                     $tableNameMap[$contentSchema['ADD_TAB_NAME']] = $contentSchema['ADD_TAB_NAME'];
                     $tableData = new stdClass();
                     if (isset($contentSchema["PRO_UID"])) {
                         $tableData->PRO_UID = $contentSchema["PRO_UID"];
                     } else {
                         $tableData->PRO_UID = $_POST["form"]["PRO_UID"];
                     }
                     $isPmTable = false;
                     /*is a report table*/
                     if ($contentSchema["PRO_UID"] == "") {
                         $isPmTable = true;
                     }
                     $currentPRO_UID = '';
                     if (isset($_POST["form"]["PRO_UID_HELP"]) && !empty($_POST["form"]["PRO_UID_HELP"])) {
                         $currentPRO_UID = $_POST["form"]["PRO_UID_HELP"];
                     } else {
                         if (isset($_POST["form"]["PRO_UID"]) && !empty($_POST["form"]["PRO_UID"])) {
                             $currentPRO_UID = $_POST["form"]["PRO_UID"];
                             $_SESSION['PROCESS'] = $currentPRO_UID;
                         } else {
                             $currentPRO_UID = $_SESSION['PROCESS'];
                         }
                     }
                     if ($fromAdmin) {
                         /* from admin tab */
                         if ($tableExists !== false && !$fromConfirm && !$overWrite) {
                             $validationType = 1;
                             throw new Exception(G::loadTranslation('ID_OVERWRITE_PMTABLE'));
//.........这里部分代码省略.........
开发者ID:emildev35,项目名称:processmaker,代码行数:101,代码来源:pmTablesProxy.php


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