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


PHP Cases::getAllGeneratedDocumentsCriteria方法代码示例

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


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

示例1: AppDocument

     $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;
 case 'deleteGeneratedDocument':
     //require_once 'classes/model/AppDocument.php';
     $oAppDocument = new AppDocument();
     $oAppDocument->remove($_POST['DOC']);
     $oCase = new Cases();
     $oCase->getAllGeneratedDocumentsCriteria($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['TASK'], $_SESSION['USER_LOGGED']);
     break;
     /* @Author Erik Amaru Ortiz <erik@colosa.com> */
 /* @Author Erik Amaru Ortiz <erik@colosa.com> */
 case 'resendMessage':
     //require_once 'classes/model/Configuration.php';
     G::LoadClass('spool');
     $oCase = new Cases();
     $data = $oCase->getHistoryMessagesTrackerView($_POST['APP_UID'], $_POST['APP_MSG_UID']);
     //print_r($data);
     G::LoadClass("system");
     $aSetup = System::getEmailConfiguration();
     $passwd = $aSetup['MESS_PASSWORD'];
     $passwdDec = G::decrypt($passwd, 'EMAILENCRYPT');
     $auxPass = explode('hash:', $passwdDec);
     if (count($auxPass) > 1) {
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:cases_Ajax.php

示例2: outputDocumentList

    /**

     * output document list

     *

     * @param string $sApplicationUID

     * @param string $sUserUID

     * @return $result will return an object

     */

    public function outputDocumentList ($sApplicationUID, $sUserUID)

    {

        try {

            $oCase = new Cases();

            $fields = $oCase->loadCase( $sApplicationUID );

            $sProcessUID = $fields['PRO_UID'];

            $sTaskUID = '';

            $oCriteria = $oCase->getAllGeneratedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID );



            $result = array ();

            global $_DBArray;



            foreach ($_DBArray['outputDocuments'] as $key => $row) {

                if (isset( $row['DOC_VERSION'] )) {

                    $docrow = array ();

                    $docrow['guid'] = $row['APP_DOC_UID'];

                    $docrow['filename'] = $row['DOWNLOAD_FILE'];



                    $docrow['docId'] = $row['DOC_UID'];

                    $docrow['version'] = $row['DOC_VERSION'];

                    $docrow['createDate'] = $row['CREATE_DATE'];

                    $docrow['createBy'] = $row['CREATED_BY'];

                    $docrow['type'] = $row['TYPE'];

                    $docrow['index'] = $row['APP_DOC_INDEX'];

                    $docrow['link'] = 'cases/' . $row['DOWNLOAD_LINK'];

                    $result[] = $docrow;

                }

            }



            return $result;

        } catch (Exception $e) {

            $result[] = array ('guid' => $e->getMessage()

            );



            return $result;

        }

    }
开发者ID:nhenderson,项目名称:processmaker,代码行数:87,代码来源:class.wsBase.php


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