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


PHP Cases::unpauseCase方法代码示例

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


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

示例1: unpauseCase

    /**

     * Unpause 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 unpause the case.

     * @return $result will return an object

     */

    public function unpauseCase ($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->unpauseCase( $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

示例2: elseif

         $APP_UID = $_POST['APP_UID'];
         $DEL_INDEX = $_POST['DEL_INDEX'];
     } elseif (isset($_POST['sApplicationUID']) && isset($_POST['iIndex'])) {
         $APP_UID = $_POST['sApplicationUID'];
         $DEL_INDEX = $_POST['iIndex'];
     } else {
         $APP_UID = $_SESSION['APPLICATION'];
         $DEL_INDEX = $_SESSION['INDEX'];
     }
     $oCase->pauseCase($APP_UID, $DEL_INDEX, $_SESSION['USER_LOGGED'], $unpauseDate);
     break;
 case 'unpauseCase':
     $sApplicationUID = isset($_POST['sApplicationUID']) ? $_POST['sApplicationUID'] : $_SESSION['APPLICATION'];
     $iIndex = isset($_POST['sApplicationUID']) ? $_POST['iIndex'] : $_SESSION['INDEX'];
     $oCase = new Cases();
     $oCase->unpauseCase($sApplicationUID, $iIndex, $_SESSION['USER_LOGGED']);
     break;
 case 'deleteCase':
     $oCase = new Cases();
     $sApplicationUID = isset($_POST['sApplicationUID']) ? $_POST['sApplicationUID'] : $_SESSION['APPLICATION'];
     $oCase->removeCase($sApplicationUID);
     break;
 case 'view_reassignCase':
     G::LoadClass('groups');
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     $aAux = $oTasks->getGroupsOfTask($_SESSION['TASK'], 1);
     $row = array();
     $groups = new Groups();
     foreach ($aAux as $aGroup) {
         $aUsers = $groups->getUsersOfGroup($aGroup['GRP_UID']);
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例3: unpauseCase

 public function unpauseCase()
 {
     try {
         $applicationUID = isset($_POST['APP_UID']) ? $_POST['APP_UID'] : $_SESSION['APPLICATION'];
         $delIndex = isset($_POST['DEL_INDEX']) ? $_POST['DEL_INDEX'] : $_SESSION['INDEX'];
         $oCase = new Cases();
         $oCase->unpauseCase($applicationUID, $delIndex, $_SESSION['USER_LOGGED']);
         $app = new Application();
         $caseData = $app->load($applicationUID);
         $data['APP_NUMBER'] = $caseData['APP_NUMBER'];
         $result->success = true;
         $result->msg = G::LoadTranslation('ID_CASE_UNPAUSED_SUCCESSFULLY', SYS_LANG, $data);
     } catch (Exception $e) {
         $result->success = false;
         $result->msg = $e->getMessage();
     }
     print G::json_encode($result);
 }
开发者ID:norahmollo,项目名称:processmaker,代码行数:18,代码来源:ajaxListener.php


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