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


PHP Cases::ThrowUnpauseDaemon方法代码示例

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


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

示例1: unpauseApplications

function unpauseApplications()
{
    global $sFilter;
    global $sNow;
    if ($sFilter != '' && strpos($sFilter, 'unpause') === false) {
        return false;
    }
    setExecutionMessage("Unpausing applications");
    try {
        G::LoadClass('case');
        $oCases = new Cases();
        $oCases->ThrowUnpauseDaemon($sNow, 1);
        setExecutionResultMessage('DONE');
        saveLog('unpauseApplications', 'action', 'Unpausing Applications');
    } catch (Exception $oError) {
        setExecutionResultMessage('WITH ERRORS', 'error');
        eprintln("  '-" . $oError->getMessage(), 'red');
        saveLog('unpauseApplications', 'error', 'Error Unpausing Applications: ' . $oError->getMessage());
    }
}
开发者ID:ralpheav,项目名称:processmaker,代码行数:20,代码来源:cron_single.php

示例2: array

    if (is_array($confCasesList)) {
        $sTypeList = $confCasesList['sTypeList'];
    } else {
        $sTypeList = 'to_do';
    }
} else {
    $sTypeList = $_GET['l'];
    $confCasesList = array('sTypeList' => $sTypeList);
    $conf->saveObject($confCasesList, 'ProcessMaker', 'cases_List', '', $_SESSION['USER_LOGGED'], '');
}
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
$_SESSION['CASES_MENU_OPTION'] = $sTypeList;
$oCases = new Cases();
/** here we verify if there is a any case with a unpause on this day*/
if ($sTypeList === 'to_do' or $sTypeList === 'draft' or $sTypeList === 'paused') {
    $oCases->ThrowUnpauseDaemon(date('Y-m-d'));
}
/* *
 * Prepare the addtional filters before to show
 * By Erik
 */
$aAdditionalFilter = array();
if (isset($_GET['PROCESS_UID']) and $_GET['PROCESS_UID'] != "0" && $_GET['PROCESS_UID'] != "") {
    $PRO_UID = $_GET['PROCESS_UID'];
    $aAdditionalFilter['PRO_UID'] = $PRO_UID;
} else {
    $PRO_UID = "0";
}
if (isset($_GET['READ']) and $_GET['READ'] == "1") {
    $aAdditionalFilter['READ'] = $_GET['READ'];
}
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:cases_List.php


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