本文整理汇总了PHP中Cases::prepareCriteriaForToDo方法的典型用法代码示例。如果您正苦于以下问题:PHP Cases::prepareCriteriaForToDo方法的具体用法?PHP Cases::prepareCriteriaForToDo怎么用?PHP Cases::prepareCriteriaForToDo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cases
的用法示例。
在下文中一共展示了Cases::prepareCriteriaForToDo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
if (isset($_GET['READ']) and $_GET['READ'] == "1") {
$aAdditionalFilter['READ'] = $_GET['READ'];
}
if (isset($_GET['UNREAD']) and $_GET['UNREAD'] == "1") {
$aAdditionalFilter['UNREAD'] = $_GET['UNREAD'];
}
if (isset($_GET['APP_STATUS_FILTER']) and $_GET['APP_STATUS_FILTER'] != "ALL") {
$aAdditionalFilter['APP_STATUS_FILTER'] = $_GET['APP_STATUS_FILTER'];
}
if (isset($_GET['MINE']) and $_GET['MINE'] == "1") {
$aAdditionalFilter['MINE'] = $_GET['MINE'];
}
switch ($sTypeList) {
case 'to_do':
if (defined('ENABLE_CASE_LIST_OPTIMIZATION')) {
$aCriteria = $oCases->prepareCriteriaForToDo($sUIDUserLogged);
$xmlfile = 'cases/cases_ListTodoNew';
} else {
list($aCriteria, $xmlfile) = $oCases->getConditionCasesList($sTypeList, $sUIDUserLogged, true, $aAdditionalFilter);
}
break;
default:
list($aCriteria, $xmlfile) = $oCases->getConditionCasesList($sTypeList, $sUIDUserLogged, true, $aAdditionalFilter);
}
/*
$rs = ApplicationPeer::doSelectRS($aCriteria);
$rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$aRows1 = Array();
while($rs->next()) {
$aRows1[] = $rs->getRow();