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

@@ -309,5 +309,28 @@ class FilesManager
throw $e;
}
}
/**
*
* @param string $sProcessUID {@min 32} {@max 32}
* @param string $path
*
*
* @access public
*/
public function downloadProcessFilesManager($sProcessUID, $path)
{
try {
$arrayTaskUid = $this->getFileManagerUid($path);
$sPath = explode("/", $path);
$sfile = end(explode("/",$path));
$main = implode(array_slice($sPath, -3, 1));
if (file_exists(PATH_SEP.$path)) {
\G::streamFile($path, true);
}
} catch (Exception $e) {
throw $e;
}
}
}