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


PHP Cases::getConditionCasesList方法代码示例

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


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

示例1: Publisher

 global $_DBArray;
 $_DBArray['aUserInfo'] = $aUserInfo;
 $_SESSION['_DBArray'] = $_DBArray;
 //////////////////
 $G_PUBLISH = new Publisher();
 $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_ReassignBy', '', $_GET);
 $sUserToReassign = trim($_GET['REASSIGN_USER']);
 if ($_GET['REASSIGN_USER'] != '') {
     G::LoadClass('tasks');
     G::LoadClass('groups');
     $oTasks = new Tasks();
     $oGroups = new Groups();
     $oUser = new Users();
     G::LoadClass('case');
     $oCases = new Cases();
     list($oCriteriaToDo, $sXMLFile) = $oCases->getConditionCasesList('to_do', $sUserToReassign);
     list($oCriteriaDraft, $sXMLFile) = $oCases->getConditionCasesList('draft', $sUserToReassign);
     $aCasesList = array();
     $oDataset = ApplicationPeer::doSelectRS($oCriteriaToDo);
     $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
     while ($oDataset->next()) {
         array_push($aCasesList, $oDataset->getRow());
     }
     $oDataset = ApplicationPeer::doSelectRS($oCriteriaDraft);
     $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
     while ($oDataset->next()) {
         array_push($aCasesList, $oDataset->getRow());
     }
     $filedNames = array("APP_UID", "APP_NUMBER", "APP_UPDATE_DATE", "DEL_PRIORITY", "DEL_INDEX", "TAS_UID", "DEL_INIT_DATE", "DEL_FINISH_DATE", "USR_UID", "APP_STATUS", "DEL_TASK_DUE_DATE", "APP_CURRENT_USER", "APP_TITLE", "APP_PRO_TITLE", "APP_TAS_TITLE", "APP_DEL_PREVIOUS_USER");
     $aCasesList = array_merge(array($filedNames), $aCasesList);
     // G::pr($aCasesList); die;
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:cases_ReassignByUser.php

示例2: list

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();

    }

g::pr($aRows1);die;*/
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:cases_List.php

示例3: Publisher

 $G_ID_MENU_SELECTED = 'USERS';
 $G_ID_SUB_MENU_SELECTED = 'USERS';
 $G_PUBLISH = new Publisher();
 if ($_GET['USR_UID'] != '') {
     $c = 0;
     $oTemplatePower = new TemplatePower(PATH_TPL . 'users/users_DeleteReassign.html');
     $oTemplatePower->prepare();
     G::LoadClass('tasks');
     G::LoadClass('groups');
     $oTasks = new Tasks();
     $oGroups = new Groups();
     $oUser = new Users();
     G::LoadClass('case');
     $oCases = new Cases();
     $USR_UID = $_GET['USR_UID'];
     list($oCriteriaToDo, $sXMLFile) = $oCases->getConditionCasesList('to_do', $_GET['USR_UID']);
     list($oCriteriaDraft, $sXMLFile) = $oCases->getConditionCasesList('draft', $_GET['USR_UID']);
     if (ApplicationPeer::doCount($oCriteriaToDo) == 0 && ApplicationPeer::doCount($oCriteriaDraft) == 0) {
     }
     G::header('location: users_Delete?USR_UID=' . $USR_UID);
     $oDataset = ApplicationPeer::doSelectRS($oCriteriaToDo);
     $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
     $oDataset->next();
     while ($aRow = $oDataset->getRow()) {
         $c++;
         $oTemplatePower->newBlock('cases');
         $aKeys = array_keys($aRow);
         foreach ($aKeys as $sKey) {
             $oTemplatePower->assign($sKey, $aRow[$sKey]);
         }
         $aUsers = array($_GET['USR_UID']);
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:31,代码来源:users_DeleteReassign.php

示例4: Configurations

<?php

/**
 * OnTransit.php for plugin cas2
 *
 *
 */
/* Permissions */
//if (($RBAC_Response = $RBAC->userCanAccess("PM_CASES"))!=1) return $RBAC_Response;
/* Includes */
G::LoadClass('case');
G::LoadClass('configuration');
/* GET , POST & $_SESSION Vars */
$conf = new Configurations();
$sTypeList = 'to_do';
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
/* Menues */
$G_MAIN_MENU = 'processmaker';
$G_SUB_MENU = 'cas2/menucas2';
$G_ID_MENU_SELECTED = 'ID_CAS2';
$G_ID_SUB_MENU_SELECTED = 'ID_CAS2';
$oCases = new Cases();
list($Criteria, $xmlfile) = $oCases->getConditionCasesList($sTypeList, $sUIDUserLogged);
$xmlfile = 'cas2/cas2OnTransitList';
/* Render page */
//require_once ( 'classes/class.extendGulliver.php' );
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('propeltable', 'cas2/paged-table', 'cas2/cas2OnTransitList', $Criteria);
G::RenderPage("publish");
开发者ID:juantroche,项目名称:pmos-cas,代码行数:29,代码来源:cas2OnTransitList.php


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