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


PHP Task::getTasTitle方法代码示例

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


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

示例1: process

     G::auditLog('AddSubProcess','Add new sub process ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'taskColor':
     $oTask->taskColor($oData->pro_uid, $oData->tas_uid);
     break;
 case 'addTaskHidden':
     $sOutput = $oProcessMap->addTaskHidden($oData->uid, $oData->position->x, $oData->position->y);
     break;
 case 'editTaskProperties':
     $oProcessMap->editTaskProperties($oData->uid, (isset($oData->iForm) ? $oData->iForm : 1), $oData->index);
     break;
 case 'saveTaskPosition':
     $sOutput = $oProcessMap->saveTaskPosition($oData->uid, $oData->position->x, $oData->position->y);
     $oTask = new Task();
     $oTask->load($uidAux);
     G::auditLog('SaveTaskPosition','Change task position ('.$oTask->getTasTitle().') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'deleteTask':
     $oTaskNewPattern = new Task();
     $taskInfo=$oTaskNewPattern->load($oData->tas_uid);
     $titleTask=$taskInfo['TAS_TITLE'];
     G::auditlog("DeleteTask",'Delete Task -> '.$titleTask.' : '.$oData->tas_uid);
     $sOutput = $oProcessMap->deleteTask($oData->tas_uid);
     break;
 case 'addGuide':
     $sOutput = $oProcessMap->addGuide($oData->uid, $oData->position, $oData->direction);
     $sOutputAux = G::json_decode($sOutput);
     $sOutputAux = (array)$sOutputAux;
     G::auditLog('Add'.ucwords($oDataAux['direction']).'Line','Add '.$oDataAux['direction'].' line ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'saveGuidePosition':
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:31,代码来源:processes_Ajax.php

示例2: save

 function save($params)
 {
     require_once 'classes/model/Event.php';
     global $G_FORM;
     $sPRO_UID = $params->pro_uid;
     $sEVN_UID = $params->evn_uid;
     $sDYNAFORM = $params->initDyna;
     $sWS_USER = trim($params->username);
     $sWS_PASS = trim($params->password);
     $sWS_ROUNDROBIN = '';
     $sWE_USR = '';
     $xDYNA = $params->dynaform;
     if ($xDYNA != '') {
         $pro_uid = $params->pro_uid;
         $filename = $xDYNA;
         $filename = $filename . '.php';
         unlink(PATH_DATA . "sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP . $pro_uid . PATH_SEP . $filename);
         unlink(PATH_DATA . "sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP . $pro_uid . PATH_SEP . str_replace(".php", "Post", $filename) . ".php");
     }
     //return $params;
     G::LoadClass("system");
     $pathProcess = PATH_DATA_SITE . 'public' . PATH_SEP . $sPRO_UID . PATH_SEP;
     G::mk_dir($pathProcess, 0777);
     $oEvent = new Event();
     $oEvent->load($sEVN_UID);
     $sTASKS = $oEvent->getEvnTasUidTo();
     $oTask = new Task();
     $oTask->load($sTASKS);
     $tas_title = $oTask->getTasTitle();
     if (G::is_https()) {
         $http = 'https://';
     } else {
         $http = 'http://';
     }
     $sContent = '';
     $SITE_PUBLIC_PATH = '';
     if (file_exists($SITE_PUBLIC_PATH . '')) {
     }
     require_once 'classes/model/Dynaform.php';
     $oDynaform = new Dynaform();
     $aDynaform = $oDynaform->load($sDYNAFORM);
     $dynTitle = str_replace(' ', '_', str_replace('/', '_', $aDynaform['DYN_TITLE']));
     $sContent = "<?php\n";
     $sContent .= "global \$_DBArray;\n";
     $sContent .= "if (!isset(\$_DBArray)) {\n";
     $sContent .= "  \$_DBArray = array();\n";
     $sContent .= "}\n";
     $sContent .= "\$_SESSION['PROCESS'] = '" . $sPRO_UID . "';\n";
     $sContent .= "\$_SESSION['CURRENT_DYN_UID'] = '" . $sDYNAFORM . "';\n";
     $sContent .= "\$G_PUBLISH = new Publisher;\n";
     $sContent .= "\$G_PUBLISH->AddContent('dynaform', 'xmlform', '" . $sPRO_UID . '/' . $sDYNAFORM . "', '', array(), '" . $dynTitle . 'Post.php' . "');\n";
     $sContent .= "G::RenderPage('publish', 'blank');";
     file_put_contents($pathProcess . $dynTitle . '.php', $sContent);
     //creating the second file, the  post file who receive the post form.
     $pluginTpl = PATH_CORE . 'templates' . PATH_SEP . 'processes' . PATH_SEP . 'webentryPost.tpl';
     $template = new TemplatePower($pluginTpl);
     $template->prepare();
     $template->assign('wsdlUrl', $http . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/services/wsdl2');
     $template->assign('wsUploadUrl', $http . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/services/upload');
     $template->assign('processUid', $sPRO_UID);
     $template->assign('dynaformUid', $sDYNAFORM);
     $template->assign('taskUid', $sTASKS);
     $template->assign('wsUser', $sWS_USER);
     $template->assign('wsPass', 'md5:' . md5($sWS_PASS));
     $template->assign('wsRoundRobin', $sWS_ROUNDROBIN);
     if ($sWE_USR == "2") {
         $template->assign('USR_VAR', "\$cInfo = ws_getCaseInfo(\$caseId);\n\t  \$USR_UID = \$cInfo->currentUsers->userId;");
     } else {
         $template->assign('USR_VAR', '$USR_UID = -1;');
     }
     $template->assign('dynaform', $dynTitle);
     $template->assign('timestamp', date('l jS \\of F Y h:i:s A'));
     $template->assign('ws', SYS_SYS);
     $template->assign('version', System::getVersion());
     $fileName = $pathProcess . $dynTitle . 'Post.php';
     file_put_contents($fileName, $template->getOutputContent());
     //creating the third file, only if this wsClient.php file doesn't exists.
     $fileName = $pathProcess . 'wsClient.php';
     $pluginTpl = PATH_CORE . 'test' . PATH_SEP . 'unit' . PATH_SEP . 'ws' . PATH_SEP . 'wsClient.php';
     if (file_exists($fileName)) {
         if (filesize($fileName) != filesize($pluginTpl)) {
             @copy($fileName, $pathProcess . 'wsClient.php.bck');
             @unlink($fileName);
             $template = new TemplatePower($pluginTpl);
             $template->prepare();
             file_put_contents($fileName, $template->getOutputContent());
         }
     } else {
         $template = new TemplatePower($pluginTpl);
         $template->prepare();
         file_put_contents($fileName, $template->getOutputContent());
     }
     require_once 'classes/model/Event.php';
     $oEvent = new Event();
     $aDataEvent = array();
     $aDataEvent['EVN_UID'] = $sEVN_UID;
     $aDataEvent['EVN_RELATED_TO'] = 'MULTIPLE';
     $aDataEvent['EVN_ACTION'] = $sDYNAFORM;
     $aDataEvent['EVN_CONDITIONS'] = $sWS_USER;
     $output = $oEvent->update($aDataEvent);
//.........这里部分代码省略.........
开发者ID:nshong,项目名称:processmaker,代码行数:101,代码来源:webEntryProxy.php

示例3: listNewWebEntry

 public function listNewWebEntry($sProcessUID, $sEventUID)
 {
     try {
         global $G_PUBLISH;
         global $G_FORM;
         $G_PUBLISH = new Publisher();
         require_once 'classes/model/Event.php';
         $oEvent = new Event();
         $arlink = '';
         $oEvent = EventPeer::retrieveByPK($sEventUID);
         if (!is_null($oEvent)) {
             $oData = $oEvent->load($sEventUID);
             $dynTitle = '';
             $dynUid = '';
             $task_name = '';
             $usr_uid_evn = $oEvent->getEvnConditions();
             if ($oData['EVN_ACTION'] != '' && $oData['EVN_ACTION'] != 'WEB_ENTRY') {
                 require_once 'classes/model/Content.php';
                 require_once 'classes/model/Task.php';
                 require_once 'classes/model/Dynaform.php';
                 $oContent = new Content();
                 $dynTitle = $oContent->load('DYN_TITLE', '', $oData['EVN_ACTION'], 'en');
                 $task_uid = $oEvent->getEvnTasUidTo();
                 $dyn = new Dynaform();
                 $dyn->load($oData['EVN_ACTION']);
                 $dynUid = $dyn->getDynUid();
                 $task = new Task();
                 $task->load($task_uid);
                 $task_name = $task->getTasTitle();
                 if (G::is_https()) {
                     $http = 'https://';
                 } else {
                     $http = 'http://';
                 }
                 $link = $http . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/' . $sProcessUID . '/';
                 $row = array();
                 $c = 0;
                 /*
                 $oTask = new Task ( );
                 $TaskFields = $oTask->kgetassigType ( $sProcessUID , $tas='');
                 */
                 $TaskFields['TAS_ASSIGN_TYPE'] = '';
                 //$row [] = array ('W_TITLE' => '', 'W_DELETE' => '', 'TAS_ASSIGN_TYPE' => $TaskFields ['TAS_ASSIGN_TYPE'] );
                 if (is_dir(PATH_DATA . "sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP . $sProcessUID)) {
                     $dir = opendir(PATH_DATA . "sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP . $sProcessUID);
                     $dynTitle = str_replace(' ', '_', str_replace('/', '_', $dynTitle));
                     $arlink = $link . $dynTitle . '.php';
                     //$arlink     = "<a href='" . $alink . "' target='blank'><font color='#9999CC'>" . $alink . "</font></a>";
                 }
             }
         }
         $row = array('W_LINK' => $arlink, 'DYN_TITLE' => $dynTitle, 'TAS_TITLE' => $task_name, 'USR_UID' => $usr_uid_evn, 'DYN_UID' => $dynUid);
         //     $oJSON = new Services_JSON ( );
         //     $tmpData = $oJSON->encode( $row ) ;
         //     $tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
         //     $result = $tmpData;
         $result = array();
         $result['success'] = true;
         $result['data'] = $row;
         return $result;
     } catch (Exception $oError) {
         throw $oError;
     }
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:64,代码来源:class.processMap.php

示例4: save


//.........这里部分代码省略.........
         if ($sStartDay == '') {
             $sStartDay = date('Y-m-d');
         }
         //                echo $sOption."*". $sValue."*". $nActualTime."*". $sDaysPerformTask."*". $sWeeks."*". $sStartDay ."*". $sMonths."<br>";
         $dCurrentDay = date("d");
         $dCurrentMonth = date("m");
         $aStartDay = explode("|", $aData['SCH_START_DAY']);
         if ($sOption == '3' && $aStartDay[0] == '1') {
             $monthsArray = explode("|", $sMonths);
             foreach ($monthsArray as $row) {
                 if ($dCurrentMonth == $row && $dCurrentDay < $aStartDay[1]) {
                     $startTime = $params->SCH_START_TIME . ":00";
                     $aData['SCH_TIME_NEXT_RUN'] = date('Y') . '-' . $row . '-' . $aStartDay[1] . ' ' . $startTime;
                     break;
                 } else {
                     $aData['SCH_TIME_NEXT_RUN'] = $oCaseScheduler->updateNextRun($sOption, $sValue, $nActualTime, $sDaysPerformTask, $sWeeks, $sStartDay, $sMonths, $sDateTmp);
                 }
             }
         } else {
             $aData['SCH_TIME_NEXT_RUN'] = $oCaseScheduler->updateNextRun($sOption, $sValue, $nActualTime, $sDaysPerformTask, $sWeeks, $sStartDay, $sMonths, $sDateTmp);
         }
         //                print_r ($aData['SCH_TIME_NEXT_RUN']);
         //                die;
     } else {
         if ($sOption == '4') {
             $aData['SCH_END_DATE'] = $aData['SCH_START_TIME'];
         }
         $aData['SCH_TIME_NEXT_RUN'] = $aData['SCH_START_TIME'];
     }
     if (isset($params->SCH_END_DATE)) {
         if (trim($params->SCH_END_DATE) != '') {
             $aData['SCH_END_DATE'] = $params->SCH_END_DATE;
         }
     }
     if (!empty($params->SCH_REPEAT_TASK_CHK)) {
         $nOptEvery = $params->SCH_REPEAT_EVERY_OPT;
         if ($nOptEvery == 2) {
             $aData['SCH_REPEAT_EVERY'] = $params->SCH_REPEAT_EVERY_OPT * 60;
         } else {
             $aData['SCH_REPEAT_EVERY'] = $params->SCH_REPEAT_EVERY_OPT;
         }
     }
     if (isset($_POST['form']['CASE_SH_PLUGIN_UID']) && $_POST['form']['CASE_SH_PLUGIN_UID'] != "") {
         $aData['CASE_SH_PLUGIN_UID'] = $_POST['form']['CASE_SH_PLUGIN_UID'];
     }
     //$aData['SCH_END_DATE'] = "2020-12-30";
     //g::pr($aData);
     $sch_uid = $params->sch_uid;
     if ($sch_uid != '') {
         $aData['SCH_UID'] = $sch_uid;
         $oCaseScheduler->Update($aData);
         $sw_update = true;
     } else {
         $oCaseScheduler->create($aData);
         $sch_uid = $oCaseScheduler->getSchUid();
         $sw_update = false;
     }
     if (isset($_POST['form']['CASE_SH_PLUGIN_UID']) && $_POST['form']['CASE_SH_PLUGIN_UID'] != "") {
         $params = explode("--", $_REQUEST['form']['CASE_SH_PLUGIN_UID']);
         $oPluginRegistry =& PMPluginRegistry::getSingleton();
         $activePluginsForCaseScheduler = $oPluginRegistry->getCaseSchedulerPlugins();
         foreach ($activePluginsForCaseScheduler as $key => $caseSchedulerPluginDetail) {
             if ($caseSchedulerPluginDetail->sNamespace == $params[0] && $caseSchedulerPluginDetail->sActionId == $params[1]) {
                 $caseSchedulerSelected = $caseSchedulerPluginDetail;
             }
         }
         if (isset($caseSchedulerSelected) && is_object($caseSchedulerSelected)) {
             //Save the form
             $oData = $_POST['pluginFields'];
             $oData['SCH_UID'] = $aData['SCH_UID'];
             $oPluginRegistry->executeMethod($caseSchedulerPluginDetail->sNamespace, $caseSchedulerPluginDetail->sActionSave, $oData);
         }
     }
     //Added by Qennix
     //Update Start Time Event in BPMN
     require_once 'classes/model/Event.php';
     require_once 'classes/model/Task.php';
     $oTask = new Task();
     $oTask->load($params->tas_uid);
     $evn_uid = $oTask->getStartingEvent();
     $tas_name = $oTask->getTasTitle();
     $event = new Event();
     $editEvent = array();
     $editEvent['EVN_UID'] = $evn_uid;
     $editEvent['EVN_ACTION'] = $sch_uid;
     $event->update($editEvent);
     //End Adding
     $sch = new CaseScheduler();
     $sch->load($sch_uid);
     $this->success = true;
     $this->SCH_UID = $sch_uid;
     $this->NEXT = $sch->getSchTimeNextRun();
     $this->DESCRIPTION = $sch->getSchName();
     $this->TAS_NAME = $tas_name;
     if ($sw_update) {
         $this->msg = G::LoadTranslation('ID_SCHEDULER_SUCCESS_UPDATE');
     } else {
         $this->msg = G::LoadTranslation('ID_SCHEDULER_SUCCESS_NEW');
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:101,代码来源:caseSchedulerProxy.php


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