getAllFiles($filter, $sort, $start, $limit, $dir); } catch (Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } } /** * Download file. * * @url POST /download * * @param array $request_data name of the files * * @throws RestException * * @access protected * @class AccessControl {@permission PM_SETUP_LOG_FILES} */ public function doPostDownload($request_data) { try { $file = new FilesLogs(); $file->download(G::json_decode($request_data['files'])); } catch (Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } } }