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