本文整理汇总了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());
}
}
示例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'];
}