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


PHP Cases::getUsersParticipatedInCase方法代码示例

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


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

示例1: postNote

function postNote($httpData)
{
    //extract(getExtJSParams());
    $appUid = isset($httpData->appUid) ? $httpData->appUid : '';
    $usrUid = isset($httpData->usrUid) ? $httpData->usrUid : '';
    require_once "classes/model/AppNotes.php";
    $appNotes = new AppNotes();
    $noteContent = addslashes($httpData->noteText);
    $result = $appNotes->postNewNote($appUid, $usrUid, $noteContent, false);
    //return true;
    //die();
    //send the response to client
    @ini_set('implicit_flush', 1);
    ob_start();
    //echo G::json_encode($result);
    @ob_flush();
    @flush();
    @ob_end_flush();
    ob_implicit_flush(1);
    //return true;
    //send notification in background
    $noteRecipientsList = array();
    G::LoadClass('case');
    $oCase = new Cases();
    $p = $oCase->getUsersParticipatedInCase($appUid);
    foreach ($p['array'] as $key => $userParticipated) {
        $noteRecipientsList[] = $key;
    }
    $noteRecipients = implode(",", $noteRecipientsList);
    $appNotes->sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients);
}
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:class.actionsByEmailUtils.php

示例2: postNote

 /**
  * post Note Action
  * @param string $httpData->appUid (optional, if it is not passed try use $_SESSION['APPLICATION'])
  * @return array containg the case notes
  */
 function postNote($httpData)
 {
     //extract(getExtJSParams());
     if (isset($httpData->appUid) && trim($httpData->appUid) != "") {
         $appUid = $httpData->appUid;
     } else {
         $appUid = $_SESSION['APPLICATION'];
     }
     if (!isset($appUid)) {
         throw new Exception('Can\'t resolve the Apllication ID for this request.');
     }
     $usrUid = isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : "";
     require_once "classes/model/AppNotes.php";
     $appNotes = new AppNotes();
     $noteContent = addslashes($httpData->noteText);
     $result = $appNotes->postNewNote($appUid, $usrUid, $noteContent, false);
     // Disabling the controller response because we handle a special behavior
     $this->setSendResponse(false);
     //send the response to client
     @ini_set('implicit_flush', 1);
     ob_start();
     echo G::json_encode($result);
     @ob_flush();
     @flush();
     @ob_end_flush();
     ob_implicit_flush(1);
     //send notification in background
     $noteRecipientsList = array();
     G::LoadClass('case');
     $oCase = new Cases();
     $p = $oCase->getUsersParticipatedInCase($appUid);
     foreach ($p['array'] as $key => $userParticipated) {
         $noteRecipientsList[] = $key;
     }
     $noteRecipients = implode(",", $noteRecipientsList);
     $appNotes->sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients);
 }
开发者ID:nshong,项目名称:processmaker,代码行数:42,代码来源:appProxy.php

示例3: addCaseNote

 public function addCaseNote($applicationUid, $userUid, $note, $sendMail)
 {
     $response = $this->postNewNote($applicationUid, $userUid, $note, false);
     if ($sendMail == 1) {
         G::LoadClass("case");
         $case = new Cases();
         $p = $case->getUsersParticipatedInCase($applicationUid);
         $noteRecipientsList = array();
         foreach ($p["array"] as $key => $userParticipated) {
             if ($key != '') {
                 $noteRecipientsList[] = $key;
             }
         }
         $noteRecipients = implode(",", $noteRecipientsList);
         $note = stripslashes($note);
         $this->sendNoteNotification($applicationUid, $userUid, $note, $noteRecipients);
     }
     return $response;
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:19,代码来源:AppNotes.php

示例4: postNewNote

 function postNewNote($appUid, $usrUid, $noteContent, $notify = true, $noteAvalibility = "PUBLIC", $noteRecipients = "", $noteType = "USER", $noteDate = "now")
 {
     $this->setAppUid($appUid);
     $this->setUsrUid($usrUid);
     $this->setNoteDate($noteDate);
     $this->setNoteContent($noteContent);
     $this->setNoteType($noteType);
     $this->setNoteAvailability($noteAvalibility);
     $this->setNoteOriginObj('');
     $this->setNoteAffectedObj1('');
     $this->setNoteAffectedObj2('');
     $this->setNoteRecipients($noteRecipients);
     if ($this->validate()) {
         // we save it, since we get no validation errors, or do whatever else you like.
         $res = $this->save();
         $msg = '';
     } else {
         // Something went wrong. We can now get the validationFailures and handle them.
         $msg = '';
         $validationFailuresArray = $this->getValidationFailures();
         foreach ($validationFailuresArray as $objValidationFailure) {
             $msg .= $objValidationFailure->getMessage() . "<br/>";
         }
         //return array ( 'codError' => -100, 'rowsAffected' => 0, 'message' => $msg );
     }
     if ($msg != "") {
         $response['success'] = 'failure';
         $response['message'] = $msg;
     } else {
         $response['success'] = 'success';
         $response['message'] = 'Saved...';
     }
     if ($notify) {
         if ($noteRecipients == "") {
             $noteRecipientsA = array();
             G::LoadClass('case');
             $oCase = new Cases();
             $p = $oCase->getUsersParticipatedInCase($appUid);
             foreach ($p['array'] as $key => $userParticipated) {
                 $noteRecipientsA[] = $key;
             }
             $noteRecipients = implode(",", $noteRecipientsA);
         }
         $this->sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients);
     }
     return $response;
 }
开发者ID:nshong,项目名称:processmaker,代码行数:47,代码来源:AppNotes.php


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