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


PHP Step::removeStep方法代码示例

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


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

示例1: deleteInputDoc

 public function deleteInputDoc($params)
 {
     require_once 'classes/model/StepSupervisor.php';
     require_once 'classes/model/ObjectPermission.php';
     require_once 'classes/model/InputDocument.php';
     G::LoadClass('processMap');
     $oStepSupervisor = new StepSupervisor();
     $fields2 = $oStepSupervisor->loadInfo($params->IDOC_UID);
     $oStepSupervisor->remove($fields2['STEP_UID']);
     $oPermission = new ObjectPermission();
     $fields3 = $oPermission->loadInfo($params->IDOC_UID);
     if (is_array($fields3)) {
         $oPermission->remove($fields3['OP_UID']);
     }
     $oInputDocument = new InputDocument();
     $fields = $oInputDocument->load($params->IDOC_UID);
     $oInputDocument->remove($params->IDOC_UID);
     $oStep = new Step();
     $oStep->removeStep('INPUT_DOCUMENT', $params->IDOC_UID);
     $oOP = new ObjectPermission();
     $oOP->removeByObject('INPUT', $params->IDOC_UID);
     //refresh dbarray with the last change in inputDocument
     $oMap = new processMap();
     $oCriteria = $oMap->getInputDocumentsCriteria($params->PRO_UID);
     $this->success = true;
     $this->msg = G::LoadTranslation('ID_INPUT_DOC_SUCCESS_DELETE');
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:27,代码来源:processOptionsProxy.php

示例2: StepSupervisor

            break;
        case 'deleteInputDocument':
            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) {
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:inputdocs_Delete.php

示例3: delete

 /**
  * Delete InputDocument
  *
  * @param string $inputDocumentUid Unique id of InputDocument
  *
  * return void
  */
 public function delete($inputDocumentUid)
 {
     try {
         //Verify data
         $this->throwExceptionIfNotExistsInputDocument($inputDocumentUid, "", $this->arrayFieldNameForException["inputDocumentUid"]);
         $this->throwExceptionIfItsAssignedInOtherObjects($inputDocumentUid, $this->arrayFieldNameForException["inputDocumentUid"]);
         //Delete
         //StepSupervisor
         $stepSupervisor = new \StepSupervisor();
         $arrayData = $stepSupervisor->loadInfo($inputDocumentUid);
         $result = $stepSupervisor->remove($arrayData["STEP_UID"]);
         //ObjectPermission
         $objectPermission = new \ObjectPermission();
         $arrayData = $objectPermission->loadInfo($inputDocumentUid);
         if (is_array($arrayData)) {
             $result = $objectPermission->remove($arrayData["OP_UID"]);
         }
         //InputDocument
         $inputDocument = new \InputDocument();
         $result = $inputDocument->remove($inputDocumentUid);
         //Step
         $step = new \Step();
         $step->removeStep("INPUT_DOCUMENT", $inputDocumentUid);
         //ObjectPermission
         $objectPermission = new \ObjectPermission();
         $objectPermission->removeByObject("INPUT", $inputDocumentUid);
     } catch (\Exception $e) {
         throw $e;
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:37,代码来源:InputDocument.php

示例4: Exception

     }
     print G::json_encode($result);
     break;
 case 'removeDynaform':
     try {
         if (!isset($_POST['DYN_UID'])) {
             throw new Exception('DYN_UID was not set!');
         }
         $DYN_UIDS = explode(',', $_POST['DYN_UID']);
         foreach ($DYN_UIDS as $i => $DYN_UID) {
             $dynaform = new dynaform();
             //in table dynaform
             $dynaform->remove($DYN_UID);
             //in table Step
             $oStep = new Step();
             $oStep->removeStep('DYNAFORM', $DYN_UID);
             //in table ObjectPermission
             $oOP = new ObjectPermission();
             $oOP->removeByObject('DYNAFORM', $DYN_UID);
             //in table Step_supervisor
             $oSS = new StepSupervisor();
             $oSS->removeByObject('DYNAFORM', $DYN_UID);
             //in table case_tracker_object
             $oCTO = new CaseTrackerObject();
             $oCTO->removeByObject('DYNAFORM', $DYN_UID);
         }
         $result->success = true;
         $result->msg = G::LoadTranslation('ID_DYNAFORM_REMOVED');
     } catch (Exception $e) {
         $result->success = false;
         $result->msg = $e->getMessage();
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:dynaforms_Delete.php

示例5: 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

示例6: delete

 /**
  * Delete DynaForm
  *
  * @param string $dynaFormUid Unique id of DynaForm
  *
  * return void
  */
 public function delete($dynaFormUid)
 {
     try {
         //Verify data
         $this->throwExceptionIfNotExistsDynaForm($dynaFormUid, "", $this->arrayFieldNameForException["dynaFormUid"]);
         //Load DynaForm
         $dynaForm = new \Dynaform();
         $arrayDynaFormData = $dynaForm->Load($dynaFormUid);
         $processUid = $arrayDynaFormData["PRO_UID"];
         //Verify dependences dynaforms
         $resultDepends = $this->dynaFormDepends($dynaFormUid, $processUid);
         if ($resultDepends != "") {
             throw new \Exception($resultDepends);
         }
         //Delete
         //In table DYNAFORM
         $result = $dynaForm->remove($dynaFormUid);
         //In table STEP
         $step = new \Step();
         $step->removeStep("DYNAFORM", $dynaFormUid);
         //In table OBJECT_PERMISSION
         $objPermission = new \ObjectPermission();
         $objPermission->removeByObject("DYNAFORM", $dynaFormUid);
         //In table STEP_SUPERVISOR
         $stepSupervisor = new \StepSupervisor();
         $stepSupervisor->removeByObject("DYNAFORM", $dynaFormUid);
         //In table CASE_TRACKER_OBJECT
         $caseTrackerObject = new \CaseTrackerObject();
         $caseTrackerObject->removeByObject("DYNAFORM", $dynaFormUid);
     } catch (\Exception $e) {
         throw $e;
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:40,代码来源:DynaForm.php


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