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


PHP processMap::triggersList方法代碼示例

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


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

示例1: Triggers

    print $flag;
    //print'krlos';return ;
} else {
    try {
        $oTrigger = new Triggers();
        G::LoadClass('processMap');
        $oProcessMap = new processMap(new DBConnection());
        if (isset($_POST['form'])) {
            $value = $_POST['form'];
        } else {
            $value = $_POST;
        }
        if ($value['TRI_UID'] != '') {
            $oTrigger->load($value['TRI_UID']);
        } else {
            $oTrigger->create($value);
            $value['TRI_UID'] = $oTrigger->getTriUid();
        }
        //print_r($_POST['form']);die;
        $oTrigger->update($value);
        if (!isset($_POST['mode'])) {
            $oProcessMap->triggersList($value['PRO_UID']);
        }
        $result->success = true;
        $result->msg = G::LoadTranslation('ID_TRIGGERS_SAVED');
    } catch (Exception $e) {
        $result->success = false;
        $result->msg = $e->getMessage();
    }
    print G::json_encode($result);
}
開發者ID:bqevin,項目名稱:processmaker,代碼行數:31,代碼來源:triggers_Save.php

示例2: trim

                        break;
                    default:
                        $option = is_numeric($aDataTriggers[$sOptionTrigger]) || is_bool($aDataTriggers[$sOptionTrigger]) ? trim($aDataTriggers[$sOptionTrigger]) : strstr($aDataTriggers[$sOptionTrigger], "array") ? trim($aDataTriggers[$sOptionTrigger]) : '"' . trim($aDataTriggers[$sOptionTrigger]) . '"';
                        break;
                }
            }
        } else {
            $option = "' '";
        }
        $methodParamsFinal[] = $option;
    }
    $i++;
}
$sPMfunction .= isset($aDataTriggers['TRI_ANSWER']) && $aDataTriggers['TRI_ANSWER'] != '' ? $aDataTriggers['TRI_ANSWER'] . " = " : "";
$sPMfunction .= $aDataTriggers['PMFUNTION_NAME'] . " (" . implode(",", $methodParamsFinal) . ");";
//Create Trigger
$aDataTriggers['TRI_WEBBOT'] = $sPMfunction;
$aDataTriggersParams = array();
$aDataTriggersParams['hash'] = G::encryptOld($sPMfunction);
$aDataTriggersParams['params'] = $aDataTriggers;
$aDataTriggers['TRI_PARAM'] = serialize($aDataTriggersParams);
//$oTrigger->create ( $aDataTriggers );
$aDataTriggerLoaded = $oTrigger->load($triUid);
//var_dump($aDataTriggerLoaded);
//die;
//Update Info
$aDataTriggers['TRI_UID'] = $oTrigger->getTriUid();
$oTrigger->update($aDataTriggers);
//Update Trigger Array
$oProcessMap->triggersList($aDataTriggers['PRO_UID']);
開發者ID:emildev35,項目名稱:processmaker,代碼行數:30,代碼來源:triggers_WizardUpdate.php

示例3:

     $sOutput = $oProcessMap->saveTextPosition($oData->uid, $oData->position->x, $oData->position->y);
     break;
 case 'deleteText':
     $sOutput = $oProcessMap->deleteText($oData->uid);
     break;
 case 'dynaforms':
     $oProcessMap->dynaformsList($oData->pro_uid);
     break;
 case 'inputs':
     $oProcessMap->inputdocsList($oData->pro_uid);
     break;
 case 'outputs':
     $oProcessMap->outputdocsList($oData->pro_uid);
     break;
 case 'triggers':
     $oProcessMap->triggersList($oData->pro_uid);
     break;
 case 'case_scheduler':
     if (isset($_REQUEST['PRO_UID'])) {
         $oProcessMap->caseSchedulerList($_REQUEST['PRO_UID']);
     }
     break;
 case 'log_case_scheduler':
     if (isset($_REQUEST['PRO_UID'])) {
         $oProcessMap->logCaseSchedulerList($_REQUEST['PRO_UID']);
     }
     break;
 case 'messages':
     $oProcessMap->messagesList($oData->pro_uid);
     break;
 case 'reportTables':
開發者ID:rodriquelca,項目名稱:processmaker,代碼行數:31,代碼來源:processes_Ajax.php

示例4: triggersListTest

 function triggersListTest($aTestData, $aFields)
 {
     $oProcessMap = new processMap();
     try {
         return $oProcessMap->triggersList($aFields['PRO_UID']);
     } catch (Exception $oError) {
         return $oError;
     }
 }
開發者ID:emildev35,項目名稱:processmaker,代碼行數:9,代碼來源:classProcessMapTest.php


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