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


PHP processMap::getOutputDocumentsCriteria方法代码示例

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


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

示例1: OutputDocument

            G::header('location: ../login/login');
            die;
            break;
        case -1:
            G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
            G::header('location: ../login/login');
            die;
            break;
    }
    require_once 'classes/model/OutputDocument.php';
    require_once 'classes/model/ObjectPermission.php';
    require_once 'classes/model/Step.php';
    G::LoadClass('processMap');
    $oOutputDocument = new OutputDocument();
    $fields = $oOutputDocument->load($_POST['OUT_DOC_UID']);
    $oOutputDocument->remove($_POST['OUT_DOC_UID']);
    $oStep = new Step();
    $oStep->removeStep('OUTPUT_DOCUMENT', $_POST['OUT_DOC_UID']);
    $oOP = new ObjectPermission();
    $oOP->removeByObject('OUTPUT', $_POST['OUT_DOC_UID']);
    //refresh dbarray with the last change in outputDocument
    $oMap = new processMap();
    $oCriteria = $oMap->getOutputDocumentsCriteria($fields['PRO_UID']);
    $result->success = true;
    $result->msg = G::LoadTranslation('ID_OUTPUTDOCUMENT_REMOVED');
} catch (Exception $e) {
    $result->success = false;
    $result->msg = $e->getMessage();
    //die($oException->getMessage());
}
print G::json_encode($result);
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:outputdocs_Delete.php

示例2: JavaBridgePM

        if (isset($aData['OUT_DOC_PDF_SECURITY_ENABLED']) && $aData['OUT_DOC_PDF_SECURITY_ENABLED'] == "0") {
            $aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = "";
            $aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = "";
            $aData['OUT_DOC_PDF_SECURITY_PERMISSIONS'] = "";
        }
        if (isset($aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD']) && $aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] != "") {
            $aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = G::encrypt($aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'], $aData['OUT_DOC_UID']);
            $aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = G::encrypt($aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'], $aData['OUT_DOC_UID']);
        }
    }
    if ($aData['OUT_DOC_UID'] == '') {
        if (isset($aData['OUT_DOC_TYPE']) && $aData['OUT_DOC_TYPE'] == 'JRXML') {
            $dynaformUid = $aData['DYN_UID'];
            $outDocUid = $oOutputDocument->create($aData);
            G::LoadClass('javaBridgePM');
            $jbpm = new JavaBridgePM();
            print $jbpm->generateJrxmlFromDynaform($outDocUid, $dynaformUid, 'classic');
        } else {
            $outDocUid = $oOutputDocument->create($aData);
        }
    } else {
        $oOutputDocument->update($aData);
    }
    if (isset($aData['PRO_UID'])) {
        //refresh dbarray with the last change in outputDocument
        $oMap = new processMap();
        $oCriteria = $oMap->getOutputDocumentsCriteria($aData['PRO_UID']);
    }
} catch (Exception $oException) {
    die($oException->getMessage());
}
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:outputdocs_Save.php

示例3: deleteOutputDocument

 /**
  * Delete a output document of a project
  *
  * @param string $sProcessUID
  * @param string $sOutputDocumentUID
  *
  * @access public
  */
 public function deleteOutputDocument($sProcessUID, $sOutputDocumentUID)
 {
     try {
         require_once PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "OutputDocument.php";
         require_once PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "ObjectPermission.php";
         require_once PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Step.php";
         $this->throwExceptionIfItsAssignedInOtherObjects($sOutputDocumentUID, "outputDocumentUid");
         \G::LoadClass('processMap');
         $oOutputDocument = new \OutputDocument();
         $fields = $oOutputDocument->load($sOutputDocumentUID);
         $oOutputDocument->remove($sOutputDocumentUID);
         $oStep = new \Step();
         $oStep->removeStep('OUTPUT_DOCUMENT', $sOutputDocumentUID);
         $oOP = new \ObjectPermission();
         $oOP->removeByObject('OUTPUT', $sOutputDocumentUID);
         //refresh dbarray with the last change in outputDocument
         $oMap = new \processMap();
         $oCriteria = $oMap->getOutputDocumentsCriteria($fields['PRO_UID']);
     } catch (\Exception $e) {
         throw $e;
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:30,代码来源:OutputDocument.php


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