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


PHP Gateway::update方法代码示例

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


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

示例1: processMap

    $aData = $_POST;
    $aData['TASK'] = $oJSON->decode($_POST['TASK']);
    $aData['ROU_NEXT_TASK'] = $oJSON->decode($_POST['ROU_NEXT_TASK']);
}
//Saving Gateway details into Gateway table
if ($aData['ROU_TYPE'] != 'SEQUENTIAL') {
    $oProcessMap = new processMap();
    //$sGatewayUID = $oProcessMap->saveNewGateway($aData['PROCESS'], $aData['TASK'][0], $aData['ROU_NEXT_TASK'][0]);
    require_once 'classes/model/Gateway.php';
    $oGateway = new Gateway();
    $aGatewayFields = array();
    $aGatewayFields['GAT_UID'] = $aData['GAT_UID'];
    $aGatewayFields['TAS_UID'] = $aData['TASK'][0];
    $aGatewayFields['GAT_NEXT_TASK'] = $aData['ROU_NEXT_TASK'][0];
    $aGatewayFields['GAT_TYPE'] = '';
    $oGateway->update($aGatewayFields);
    //$sGatewayUID   = $oProcessMap->saveNewGateway($aData['PROCESS'], $aData['TASK'][0], $aData['ROU_NEXT_TASK'][0]);
    //echo $sGatewayUID.'|';
}
//else
//  echo $aData['ROU_EVN_UID'].'|';   //sending route_event_uid in response
G::LoadClass('tasks');
$oTasks = new Tasks();
$rou_id = 0;
$aFields['GAT_UID'] = $aData['GAT_UID'];
switch ($aData['action']) {
    case 'savePattern':
        foreach ($aData['TASK'] as $iKey => $aRow) {
            $oTasks->deleteAllRoutesOfTask($aData['PROCESS'], $aRow);
        }
        require_once 'classes/model/Route.php';
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:patterns_Ajax.php

示例2: saveGatewayPosition

 public function saveGatewayPosition($sGatewayUID = '', $iX = 0, $iY = 0)
 {
     try {
         $oGateway = new Gateway();
         $aFields = $oGateway->load($sGatewayUID);
         $aFields['GAT_UID'] = $sGatewayUID;
         $aFields['GAT_X'] = $iX;
         $aFields['GAT_Y'] = $iY;
         return $oGateway->update($aFields);
     } catch (Exception $oError) {
         throw $oError;
     }
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:13,代码来源:class.processMap.php


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