Fix notice OUTPUTDOCUMENT. Add download FILESMANAGER

This commit is contained in:
Freddy Daniel Rojas Valda
2014-02-11 17:03:25 -04:00
parent ea95ce376f
commit 37e3a6d31d
3 changed files with 48 additions and 7 deletions

View File

@@ -125,6 +125,7 @@ class FilesManager extends Api
}
return $response;
}
/**
* @param string $prjUid {@min 32} {@max 32}
* @param string $path
@@ -135,15 +136,30 @@ class FilesManager extends Api
{
try {
$filesManager = new \BusinessModel\FilesManager();
$arrayData = $filesManager->deleteProcessFilesManager($prjUid, $path);
//Response
$response = $arrayData;
$filesManager->deleteProcessFilesManager($prjUid, $path);
} catch (\Exception $e) {
//response
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
return $response;
}
/**
* @param string $prjUid {@min 32} {@max 32}
* @param string $path
*
* @url GET /:prjUid/process-file-manager/download
*/
public function doDownloadProcessFilesManager($prjUid, $path)
{
try {
$filesManager = new \BusinessModel\FilesManager();
$filesManager->downloadProcessFilesManager($prjUid, $path);
} catch (\Exception $e) {
//response
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
}
class ProcessFilesManagerStructure