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


PHP Cases::getHistoryMessagesTracker方法代码示例

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


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

示例1: Cases

 */
if (!isset($_SESSION['PROCESS'])) {
    G::header('location: login');
}
$G_MAIN_MENU = 'caseTracker';
$G_ID_MENU_SELECTED = 'MESSAGES';
$oHeadPublisher->addScriptFile('/jscore/tracker/tracker.js');
G::LoadClass('case');
$oCase = new Cases();
$aFields = $oCase->loadCase($_SESSION['APPLICATION']);
$idProcess = $_SESSION['PROCESS'];
$oProcess = new Process();
$aProcessFieds = $oProcess->load($idProcess);
$noShowTitle = 0;
if (isset($aProcessFieds['PRO_SHOW_MESSAGE'])) {
    $noShowTitle = $aProcessFieds['PRO_SHOW_MESSAGE'];
}
if (isset($aFields['TITLE'])) {
    $aFields['APP_TITLE'] = $aFields['TITLE'];
}
if ($aFields['APP_PROC_CODE'] != '') {
    $aFields['APP_NUMBER'] = $aFields['APP_PROC_CODE'];
}
$aFields['CASE'] = G::LoadTranslation('ID_CASE');
$aFields['TITLE'] = G::LoadTranslation('ID_TITLE');
$G_PUBLISH = new Publisher();
if ($noShowTitle == 0) {
    $G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
}
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'tracker/tracker_Messages', Cases::getHistoryMessagesTracker($_SESSION['APPLICATION']), array('VIEW' => G::LoadTranslation('ID_VIEW')));
G::RenderPage('publish');
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:tracker_Messages.php

示例2: Criteria

     //require_once 'classes/model/Users.php';
     $oCriteria = new Criteria('workflow');
     $oCriteria->addSelectColumn(UsersPeer::USR_UID);
     $oCriteria->addSelectColumn(UsersPeer::USR_FIRSTNAME);
     $oCriteria->addSelectColumn(UsersPeer::USR_LASTNAME);
     $oCriteria->add(UsersPeer::USR_UID, $aAdhocUsers, Criteria::IN);
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('propeltable', 'paged-table', 'processes/processes_viewreassignCase', $oCriteria, array('THETYPE' => 'ADHOC'));
     G::RenderPage('publish', 'raw');
     break;
 case 'showHistoryMessages':
     $oCase = new Cases();
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('propeltable', 'paged-table', 'cases/cases_Messages', $oCase->getHistoryMessagesTracker($_SESSION['APPLICATION']));
     G::RenderPage('publish', 'raw');
     break;
 case 'showHistoryMessage':
     $G_PUBLISH = new Publisher();
     $oCase = new Cases();
     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_MessagesView', '', $oCase->getHistoryMessagesTrackerView($_POST['APP_UID'], $_POST['APP_MSG_UID']));
     G::RenderPage('publish', 'raw');
     break;
 case 'deleteUploadedDocument':
     //require_once 'classes/model/AppDocument.php';
     $oAppDocument = new AppDocument();
     $oAppDocument->remove($_POST['DOC']);
     $oCase = new Cases();
     $oCase->getAllUploadedDocumentsCriteria($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['TASK'], $_SESSION['USER_LOGGED']);
     break;
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例3: messages

 public function messages($idProcess, $appUid)
 {
     $oCase = new \Cases();
     $aFields = $oCase->loadCase($appUid);
     $oProcess = new \Process();
     $aProcessFieds = $oProcess->load($idProcess);
     $noShowTitle = 0;
     if (isset($aProcessFieds['PRO_SHOW_MESSAGE'])) {
         $noShowTitle = $aProcessFieds['PRO_SHOW_MESSAGE'];
     }
     if (isset($aFields['TITLE'])) {
         $aFields['APP_TITLE'] = $aFields['TITLE'];
     }
     if ($aFields['APP_PROC_CODE'] != '') {
         $aFields['APP_NUMBER'] = $aFields['APP_PROC_CODE'];
     }
     $aFields['CASE'] = \G::LoadTranslation('ID_CASE');
     $aFields['TITLE'] = \G::LoadTranslation('ID_TITLE');
     $c = \Cases::getHistoryMessagesTracker($appUid);
     $response = array();
     if ($c->getDbName() == 'dbarray') {
         $rs = \ArrayBasePeer::doSelectRs($c);
         $rs->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
         $rs->next();
         $messages = array();
         while ($row = $rs->getRow()) {
             $messages[] = $row;
             $rs->next();
         }
         $response = $this->parserMessages($messages);
     }
     return $response;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:33,代码来源:Tracker.php


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