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


PHP processMap::getInputDocumentsCriteria方法代码示例

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


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

示例1: saveInputDoc

 public function saveInputDoc($params)
 {
     require_once 'classes/model/InputDocument.php';
     G::LoadClass('processMap');
     $aData = array();
     $aData['PRO_UID'] = $params->PRO_UID;
     $aData['INP_DOC_UID'] = $params->INP_DOC_UID;
     $aData['INP_DOC_TITLE'] = $params->INP_DOC_TITLE;
     $aData['INP_DOC_FORM_NEEDED'] = $params->INP_DOC_FORM_NEEDED;
     if ($aData['INP_DOC_FORM_NEEDED'] != 'VIRTUAL') {
         $aData['INP_DOC_ORIGINAL'] = $params->INP_DOC_ORIGINAL;
     } else {
         $aData['INP_DOC_ORIGINAL'] = 'ORIGINAL';
     }
     $aData['INP_DOC_VERSIONING'] = $params->INP_DOC_VERSIONING;
     $aData['INP_DOC_DESCRIPTION'] = $params->INP_DOC_DESCRIPTION;
     $aData['INP_DOC_DESTINATION_PATH'] = $params->INP_DOC_DESTINATION_PATH;
     $aData['INP_DOC_TAGS'] = $params->INP_DOC_TAGS;
     $oInputDocument = new InputDocument();
     if ($aData['INP_DOC_UID'] == '') {
         unset($aData['INP_DOC_UID']);
         $oInputDocument->create($aData);
         $this->msg = G::LoadTranslation('ID_INPUT_DOC_SUCCESS_NEW');
     } else {
         $oInputDocument->update($aData);
         $this->msg = G::LoadTranslation('ID_INPUT_DOC_SUCCESS_UPDATE');
     }
     //refresh dbarray with the last change in inputDocument
     $oMap = new processMap();
     $oCriteria = $oMap->getInputDocumentsCriteria($aData['PRO_UID']);
     $this->success = true;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:32,代码来源:processOptionsProxy.php

示例2: StepSupervisor

            try {
                $oStepSupervisor = new StepSupervisor();
                $fields2 = $oStepSupervisor->loadInfo($_POST['INP_DOC_UID']);
                $oStepSupervisor->remove($fields2['STEP_UID']);
                $oPermission = new ObjectPermission();
                $fields3 = $oPermission->loadInfo($_POST['INP_DOC_UID']);
                if (is_array($fields3)) {
                    $oPermission->remove($fields3['OP_UID']);
                }
                $oInputDocument = new InputDocument();
                $fields = $oInputDocument->load($_POST['INP_DOC_UID']);
                $oInputDocument->remove($_POST['INP_DOC_UID']);
                $oStep = new Step();
                $oStep->removeStep('INPUT_DOCUMENT', $_POST['INP_DOC_UID']);
                $oOP = new ObjectPermission();
                $oOP->removeByObject('INPUT', $_POST['INP_DOC_UID']);
                //refresh dbarray with the last change in inputDocument
                $oMap = new processMap();
                $oCriteria = $oMap->getInputDocumentsCriteria($fields['PRO_UID']);
                $result->success = true;
                $result->msg = G::LoadTranslation('ID_INPUTDOCUMENT_REMOVED');
            } catch (Exception $e) {
                $result->success = false;
                $result->msg = $e->getMessage();
            }
            print G::json_encode($result);
            break;
    }
} catch (Exception $oException) {
    die($oException->getMessage());
}
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:inputdocs_Delete.php

示例3: inputDocumentProcessList

    /**

     * input document process list

     *

     * @param string $sProcessUID

     * @return $result will return an object

     */

    public function inputDocumentProcessList ($sProcessUID)

    {

        try {

            global $_DBArray;



            $_DBArray = (isset( $_SESSION['_DBArray'] ) ? $_SESSION['_DBArray'] : '');



            $oMap = new processMap();

            $oCriteria = $oMap->getInputDocumentsCriteria( $sProcessUID );

            $oDataset = InputDocumentPeer::doSelectRS( $oCriteria );

            $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );

            $oDataset->next();



            $result = array ();



            /*

            //not necesary for SOAP message

            $result[] = array(

                'guid' => 'char',

                'name' => 'name',

                'description' => 'description'

            );

            */



            while ($aRow = $oDataset->getRow()) {

                if ($aRow['INP_DOC_TITLE'] == null) {

                    //There is no transaltion for this Document name, try to get/regenerate the label

                    $inputDocument = new InputDocument();

                    $inputDocumentObj = $inputDocument->load( $aRow['INP_DOC_UID'] );

                    $aRow['INP_DOC_TITLE'] = $inputDocumentObj['INP_DOC_TITLE'];

                    $aRow['INP_DOC_DESCRIPTION'] = $inputDocumentObj['INP_DOC_DESCRIPTION'];

                }



                $docrow = array ();

                $docrow['guid'] = $aRow['INP_DOC_UID'];

                $docrow['name'] = $aRow['INP_DOC_TITLE'];

                $docrow['description'] = $aRow['INP_DOC_DESCRIPTION'];

                $result[] = $docrow;

                $oDataset->next();

            }



            //$_DBArray['inputDocArray'] = $inputDocArray;





//.........这里部分代码省略.........
开发者ID:nhenderson,项目名称:processmaker,代码行数:101,代码来源:class.wsBase.php

示例4: InputDocument

                $oDataset1->next();
                $aRow1 = $oDataset1->getRow();
                if ($aRow1['INPUTS']) {
                    $flag = false;
                }
            }
            print $flag;
            break;
        default:
            require_once 'classes/model/InputDocument.php';
            G::LoadClass('processMap');
            $oInputDocument = new InputDocument();
            if (isset($_POST['form'])) {
                $aData = $_POST['form'];
            } else {
                $aData = $_POST;
            }
            if ($aData['INP_DOC_UID'] == '') {
                unset($aData['INP_DOC_UID']);
                $oInputDocument->create($aData);
            } else {
                $oInputDocument->update($aData);
            }
            //refresh dbarray with the last change in inputDocument
            $oMap = new processMap();
            $oCriteria = $oMap->getInputDocumentsCriteria($aData['PRO_UID']);
            break;
    }
} catch (Exception $oException) {
    die($oException->getMessage());
}
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:inputdocs_Save.php


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