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


PHP processMap::downloadFile方法代码示例

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


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

示例1: Processes

     $_SESSION['PFMDirectory'] = '';
     $oProcessMap->processFilesManager($oData->pro_uid);
     break;
 case 'exploreDirectory':
     $objData = G::json_decode($_REQUEST['data']);
     $_SESSION['PFMDirectory'] = $objData->{'main_directory'};
     $oProcessMap->exploreDirectory($oData->pro_uid, $oData->main_directory, $oData->directory);
     break;
 case 'deleteFile':
     $oProcessMap->deleteFile($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->file);
     break;
 case 'deleteDirectory':
     $oProcessMap->deleteDirectory($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->dir_to_delete);
     break;
 case 'downloadFile':
     $oProcessMap->downloadFile($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->file);
     break;
 case 'deleteSubProcess':
     $sOutput = $oProcessMap->deleteSubProcess($oData->pro_uid, $oData->tas_uid);
     break;
 case 'subProcess_Properties':
     $oProcessMap->subProcess_Properties($oData->pro_uid, $oData->tas_uid, $oData->index);
     break;
 case 'showDetailsPMDWL':
     G::LoadClass('processes');
     $oProcesses = new Processes();
     $oProcesses->ws_open_public();
     $aFields = get_object_vars($oProcesses->ws_processGetData($oData->pro_uid));
     $aFields['description'] = nl2br($aFields['description']);
     $aFields['installSteps'] = nl2br($aFields['installSteps']);
     switch ($aFields['privacy']) {
开发者ID:rodriquelca,项目名称:processmaker,代码行数:31,代码来源:processes_Ajax.php

示例2: downloadProcessFilesManager

 /**
  *
  * @param string $sProcessUID {@min 32} {@max 32}
  * @param string $prfUid {@min 32} {@max 32}
  *
  *
  * @access public
  */
 public function downloadProcessFilesManager($sProcessUID, $prfUid)
 {
     try {
         $path = '';
         $criteria = new \Criteria("workflow");
         $criteria->addSelectColumn(\ProcessFilesPeer::PRF_PATH);
         $criteria->add(\ProcessFilesPeer::PRF_UID, $prfUid, \Criteria::EQUAL);
         $rsCriteria = \ProcessFilesPeer::doSelectRS($criteria);
         $rsCriteria->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
         $rsCriteria->next();
         while ($aRow = $rsCriteria->getRow()) {
             $path = $aRow['PRF_PATH'];
             $rsCriteria->next();
         }
         if ($path == '') {
             throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_uid')));
         }
         $sFile = end(explode("/",$path));
         $sPath = str_replace($sFile,'',$path);
         $sSubDirectory = substr(str_replace($sProcessUID,'',substr($sPath,(strpos($sPath, $sProcessUID)))),0,-1);
         $sMainDirectory = str_replace(substr($sPath, strpos($sPath, $sProcessUID)),'', $sPath);
         if ($sMainDirectory == PATH_DATA_MAILTEMPLATES) {
             $sMainDirectory = 'mailTemplates';
         } else {
             $sMainDirectory = 'public';
         }
         if (file_exists($path)) {
             $oProcessMap = new \processMap(new \DBConnection());
             $oProcessMap->downloadFile($sProcessUID,$sMainDirectory,$sSubDirectory,$sFile);
             die();
         } else {
             throw (new \Exception( 'Invalid value specified for path.'));
         }
     } catch (Exception $e) {
         throw $e;
     }
 }
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:45,代码来源:FilesManager.php


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