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


PHP processMap::getTriggers方法代码示例

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


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

示例1: Tasks

if (!isset($_SESSION['PROCESS'])) {
    if (isset($aFields['PRO_UID'])) {
        $_SESSION['PROCESS'] = $aFields['PRO_UID'];
    }
}
$oTasks = new Tasks();
$aAux1 = $oTasks->getAllTasks($aFields['PRO_UID']);
$aTasks = array();
$aTasks[] = array('TAS_UID' => 'char', 'TAS_TITLE' => 'char');
foreach ($aAux1 as $aAux2) {
    if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
        $aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
    }
}
$oProcessMap = new processMap(new DBConnection());
$aTriggersList = $oProcessMap->getTriggers($_SESSION['PROCESS']);
$aTriggersFileds = array();
$aTriggersFileds[] = array('TRI_UID' => 'char', 'TRI_TITLE' => 'char');
foreach ($aTriggersList as $i => $v) {
    unset($aTriggersList[$i]['PRO_UID']);
    unset($aTriggersList[$i]['TRI_DESCRIPTION']);
    unset($aTriggersList[$i]['TRI_LOCATE_WEBBOT_PARAM']);
    $aTriggersList[$i]['TRI_TITLE'] = strlen($aTriggersList[$i]['TRI_TITLE']) > 32 ? substr($aTriggersList[$i]['TRI_TITLE'], 0, 32) . '...' : $aTriggersList[$i]['TRI_TITLE'];
}
$aTriggersList = array_merge($aTriggersFileds, $aTriggersList);
$_DBArray['tasks'] = $aTasks;
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
$_SESSION['_DBArray'] = $_DBArray;
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/eventsEdit', '', $aFields, '../events/eventsSave');
G::RenderPage('publish', 'raw');
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:eventsEdit.php

示例2: Tasks

    G::header('location: ../login/login');
    die;
}
global $_DBArray;
G::LoadClass('tasks');
G::LoadClass('processMap');
$oTasks = new Tasks();
$aAux1 = $oTasks->getAllTasks($_GET['PRO_UID']);
$aTasks = array();
$aTasks[] = array('TAS_UID' => 'char', 'TAS_TITLE' => 'char');
//g::pr($aAux1);die;
foreach ($aAux1 as $aAux2) {
    if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
        $aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
    }
}
$oProcessMap = new processMap(new DBConnection());
$aTriggersList = $oProcessMap->getTriggers($_GET['PRO_UID']);
$aTriggersFileds = array('TRI_UID' => 'char', 'TRI_TITLE' => 'char');
foreach ($aTriggersList as $i => $v) {
    unset($aTriggersList[$i]['PRO_UID']);
    unset($aTriggersList[$i]['TRI_DESCRIPTION']);
    $aTriggersList[$i]['TRI_TITLE'] = strlen($aTriggersList[$i]['TRI_TITLE']) > 32 ? substr($aTriggersList[$i]['TRI_TITLE'], 0, 32) . '...' : $aTriggersList[$i]['TRI_TITLE'];
}
$aTriggersList = array_merge($aTriggersFileds, $aTriggersList);
$_DBArray['tasks'] = $aTasks;
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
$_SESSION['_DBArray'] = $_DBArray;
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/eventsNew', '', array('PRO_UID' => $_GET['PRO_UID'], 'EVN_ACTION' => $_GET['EVN_TYPE']), '');
G::RenderPage('publish', 'raw');
开发者ID:ralpheav,项目名称:processmaker,代码行数:31,代码来源:eventsNew.php

示例3: strtoupper

     $aData['TAS_SEND_LAST_EMAIL'] = strtoupper($oData->tas_send);
     $aData['TAS_DEF_MESSAGE'] = $oData->data;
     if (isset($aData['TAS_SEND_LAST_EMAIL']) && $aData['TAS_SEND_LAST_EMAIL'] == 'FALSE') {
         $aData['TAS_DEF_MESSAGE'] = '';
     } else {
         $aData['TAS_DEF_MESSAGE'] = str_replace('@amp@', '&', $aData['TAS_DEF_MESSAGE']);
     }
     $sOutput = $oTask->update($aData);
     echo $sOutput;
     break;
 case 'editObjectPermission':
     // we also need the process uid variable for the function.
     $oProcessMap->editObjectPermission($oData->op_uid, $oData->pro_uid);
     break;
 case 'triggersList':
     $sOutput = $oProcessMap->getTriggers($oData->pro_uid);
     $sOutput = $oJSON->encode($sOutput);
     echo $sOutput;
     break;
 case 'loadCategory':
     $sOutput = $oProcessMap->loadProcessCategory();
     $sOutput = $oJSON->encode($sOutput);
     echo $sOutput;
     break;
 case 'saveProcess':
     $aData['PRO_UID'] = $oData->PRO_UID;
     $aData['PRO_CALENDAR'] = $oData->PRO_CALENDAR;
     $aData['PRO_CATEGORY'] = $oData->PRO_CATEGORY;
     $aData['PRO_DEBUG'] = $oData->PRO_DEBUG;
     $aData['PRO_DESCRIPTION'] = $oData->PRO_DESCRIPTION;
     $aData['PRO_TITLE'] = $oData->PRO_TITLE;
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:processes_Ajax.php


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