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


PHP Cases::cancelCase方法代码示例

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


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

示例1: explode

         $DEL_INDEX = $_POST['DEL_INDEX'];
         $appUids = explode(',', $APP_UID);
         $delIndexes = explode(',', $DEL_INDEX);
         if (count($appUids) > 1 && count($delIndexes) > 1) {
             $multiple = true;
         }
     } elseif (isset($_POST['sApplicationUID']) && isset($_POST['iIndex'])) {
         $APP_UID = $_POST['sApplicationUID'];
         $DEL_INDEX = $_POST['iIndex'];
     } else {
         $APP_UID = $_SESSION['APPLICATION'];
         $DEL_INDEX = $_SESSION['INDEX'];
     }
     if ($multiple) {
         foreach ($appUids as $i => $appUid) {
             $oCase->cancelCase($appUid, $delIndexes[$i], $_SESSION['USER_LOGGED']);
         }
     } else {
         $oCase->cancelCase($APP_UID, $DEL_INDEX, $_SESSION['USER_LOGGED']);
     }
     break;
 case 'reactivateCase':
     $sApplicationUID = isset($_POST['sApplicationUID']) ? $_POST['sApplicationUID'] : $_SESSION['APPLICATION'];
     $iIndex = isset($_POST['sApplicationUID']) ? $_POST['iIndex'] : $_SESSION['INDEX'];
     $oCase = new Cases();
     $oCase->reactivateCase($sApplicationUID, $iIndex, $_SESSION['USER_LOGGED']);
     break;
 case 'showPauseCaseInput':
     //echo '<input type=button onclick="close_pauseCase()" value="Cancel">';
     $aFields = array();
     $G_PUBLISH = new Publisher();
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例2: cancelCase

 public function cancelCase()
 {
     $oCase = new Cases();
     $multiple = false;
     if (isset($_POST['APP_UID']) && isset($_POST['DEL_INDEX'])) {
         $APP_UID = $_POST['APP_UID'];
         $DEL_INDEX = $_POST['DEL_INDEX'];
         $appUids = explode(',', $APP_UID);
         $delIndexes = explode(',', $DEL_INDEX);
         if (count($appUids) > 1 && count($delIndexes) > 1) {
             $multiple = true;
         }
     } elseif (isset($_POST['sApplicationUID']) && isset($_POST['iIndex'])) {
         $APP_UID = $_POST['sApplicationUID'];
         $DEL_INDEX = $_POST['iIndex'];
     } else {
         $APP_UID = $_SESSION['APPLICATION'];
         $DEL_INDEX = $_SESSION['INDEX'];
     }
     // Save the note pause reason
     if ($_POST['NOTE_REASON'] != '') {
         require_once "classes/model/AppNotes.php";
         $appNotes = new AppNotes();
         $noteContent = addslashes($_POST['NOTE_REASON']);
         $appNotes->postNewNote($APP_UID, $_SESSION['USER_LOGGED'], $noteContent, $_POST['NOTIFY_PAUSE']);
     }
     // End save
     if ($multiple) {
         foreach ($appUids as $i => $appUid) {
             $oCase->cancelCase($appUid, $delIndexes[$i], $_SESSION['USER_LOGGED']);
         }
     } else {
         $oCase->cancelCase($APP_UID, $DEL_INDEX, $_SESSION['USER_LOGGED']);
     }
 }
开发者ID:norahmollo,项目名称:processmaker,代码行数:35,代码来源:ajaxListener.php

示例3: cancelCase

    /**

     * Cancel case

     *

     * @param string caseUid : ID of the case.

     * @param int delIndex : Delegation index of the case.

     * @param string userUid : The unique ID of the user who will cancel the case.

     * @return $result will return an object

     */

    public function cancelCase ($caseUid, $delIndex, $userUid)

    {

        $g = new G();



        try {

            $g->sessionVarSave();



            $_SESSION["APPLICATION"] = $caseUid;

            $_SESSION["INDEX"] = $delIndex;

            $_SESSION["USER_LOGGED"] = $userUid;



            if (empty( $caseUid )) {

                $result = new wsResponse( 100, G::LoadTranslation( "ID_REQUIRED_FIELD" ) . " caseUid" );



                $g->sessionVarRestore();



                return $result;

            }



            if (empty( $delIndex )) {

                $result = new wsResponse( 100, G::LoadTranslation( "ID_REQUIRED_FIELD" ) . " delIndex" );



                $g->sessionVarRestore();



                return $result;

            }



            if (empty( $userUid )) {

                $result = new wsResponse( 100, G::LoadTranslation( "ID_REQUIRED_FIELD" ) . " userUid" );



                $g->sessionVarRestore();



                return $result;

            }



            $case = new Cases();

            $case->cancelCase( $caseUid, $delIndex, $userUid );



            //Response

            $res = new wsResponse( 0, G::LoadTranslation( "ID_COMMAND_EXECUTED_SUCCESSFULLY" ) );



            $result = array ("status_code" => $res->status_code,"message" => $res->message,"timestamp" => $res->timestamp

//.........这里部分代码省略.........
开发者ID:nhenderson,项目名称:processmaker,代码行数:101,代码来源:class.wsBase.php

示例4: cancelCase

 function cancelCase()
 {
     $oCase = new Cases();
     $multiple = false;
     if (isset($_POST['APP_UID']) && isset($_POST['DEL_INDEX'])) {
         $APP_UID = $_POST['APP_UID'];
         $DEL_INDEX = $_POST['DEL_INDEX'];
         $appUids = explode(',', $APP_UID);
         $delIndexes = explode(',', $DEL_INDEX);
         if (count($appUids) > 1 && count($delIndexes) > 1) {
             $multiple = true;
         }
     } else {
         if (isset($_POST['sApplicationUID']) && isset($_POST['iIndex'])) {
             $APP_UID = $_POST['sApplicationUID'];
             $DEL_INDEX = $_POST['iIndex'];
         } else {
             $APP_UID = $_SESSION['APPLICATION'];
             $DEL_INDEX = $_SESSION['INDEX'];
         }
     }
     if ($multiple) {
         foreach ($appUids as $i => $appUid) {
             $oCase->cancelCase($appUid, $delIndexes[$i], $_SESSION['USER_LOGGED']);
         }
     } else {
         $oCase->cancelCase($APP_UID, $DEL_INDEX, $_SESSION['USER_LOGGED']);
     }
 }
开发者ID:nshong,项目名称:processmaker,代码行数:29,代码来源:ajaxListener.php


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