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


PHP Cases::getCurrentDelegationCase方法代码示例

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


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

示例1: unset

                if ($_action == 'jump') {
                    $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], 1);
                    $_SESSION['ACTION'] = 'jump';
                } else {
                    $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']);
                    unset($_SESSION['ACTION']);
                }
                $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];
                $_SESSION['STEP_POSITION'] = 0;
                require_once (PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php');

            }
            break;
        default: //APP_STATUS <> DRAFT and TO_DO
            $_SESSION['APPLICATION'] = $sAppUid;
            $_SESSION['INDEX'] = $oCase->getCurrentDelegationCase( $_GET['APP_UID'] );
            $_SESSION['PROCESS'] = $aFields['PRO_UID'];
            $_SESSION['TASK'] = - 1;
            $_SESSION['STEP_POSITION'] = 0;
            $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']);
            $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];

            require_once (PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php');
    }
} catch (Exception $e) {
    $aMessage = array ();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
    G::RenderPage( 'publishBlank', 'blank' );
}
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:31,代码来源:cases_Open.php

示例2: catch

                $sPage = $aNextStep['PAGE'];
                G::header('location: ' . $sPage);
            } else {
                //when the case have another user or current user doesnt have rights to this selfservice,
                //just view the case Resume
                $_SESSION['APPLICATION'] = $sAppUid;
                $_SESSION['INDEX'] = $iDelIndex;
                $_SESSION['PROCESS'] = $aFields['PRO_UID'];
                $_SESSION['TASK'] = -1;
                $Fields = $oCase->loadCase($_SESSION['APPLICATION'], $_SESSION['INDEX']);
                $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];
                $_SESSION['STEP_POSITION'] = 0;
                require_once PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php';
            }
            break;
        default:
            //APP_STATUS <> DRAFT and TO_DO
            $_SESSION['APPLICATION'] = $sAppUid;
            $_SESSION['INDEX'] = $iDelIndex != "" ? $iDelIndex : $oCase->getCurrentDelegationCase($_GET['APP_UID']);
            $_SESSION['PROCESS'] = $aFields['PRO_UID'];
            $_SESSION['TASK'] = -1;
            $_SESSION['STEP_POSITION'] = 0;
            require_once PATH_METHODS . 'cases' . PATH_SEP . 'cases_Resume.php';
    }
} catch (Exception $e) {
    $aMessage = array();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH = new Publisher();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
    G::RenderPage('publishBlank', 'blank');
}
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:31,代码来源:cases_Open.php


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