Controller for file searching.
More...
Controller for file searching.
Definition at line 29 of file FileSearchController.php.
◆ __construct()
Fossology\UI\Api\Controllers\FileSearchController::__construct |
( |
|
$container | ) |
|
◆ filterAccessibleUploads()
Fossology\UI\Api\Controllers\FileSearchController::filterAccessibleUploads |
( |
|
$uploads | ) |
|
|
private |
From a list of uploads, filter out inaccessible uploads.
- Parameters
-
array | $uploads | List of uploads to filter from |
- Returns
- array Array of accessible uploads
Definition at line 195 of file FileSearchController.php.
◆ getFileConclusions()
Fossology\UI\Api\Controllers\FileSearchController::getFileConclusions |
( |
|
$pfileId | ) |
|
|
private |
◆ getFileCopyright()
Fossology\UI\Api\Controllers\FileSearchController::getFileCopyright |
( |
|
$pfileId | ) |
|
|
private |
◆ getFileFindings()
Fossology\UI\Api\Controllers\FileSearchController::getFileFindings |
( |
|
$pfileId | ) |
|
|
private |
◆ getFiles()
Fossology\UI\Api\Controllers\FileSearchController::getFiles |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Get the file information based on hashes sent
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
Definition at line 68 of file FileSearchController.php.
◆ getInfoForFiles()
Fossology\UI\Api\Controllers\FileSearchController::getInfoForFiles |
( |
& |
$inputFileList | ) |
|
|
private |
For given array of files, update the upload ids, scanner findings and conclusions.
- Parameters
-
Definition at line 127 of file FileSearchController.php.
◆ getMainLicenses()
Fossology\UI\Api\Controllers\FileSearchController::getMainLicenses |
( |
|
$uploads | ) |
|
|
private |
Get the list of main licenses from a list of uploads
- Parameters
-
array | $uploads | Uploads to get main licenses from |
- Returns
- array Unique array of main licenses for given uploads
Definition at line 211 of file FileSearchController.php.
◆ getPackageUpload()
Fossology\UI\Api\Controllers\FileSearchController::getPackageUpload |
( |
|
$pfileId | ) |
|
|
private |
Get the upload ids where the file has been uploaded as the source package
- Parameters
-
Definition at line 184 of file FileSearchController.php.
◆ getPfileId()
Fossology\UI\Api\Controllers\FileSearchController::getPfileId |
( |
& |
$file | ) |
|
|
private |
◆ $clearingDao
ClearingDao Fossology\UI\Api\Controllers\FileSearchController::$clearingDao |
|
private |
◆ $fileHelper
FileHelper Fossology\UI\Api\Controllers\FileSearchController::$fileHelper |
|
private |
◆ $licenseDao
LicenseDao Fossology\UI\Api\Controllers\FileSearchController::$licenseDao |
|
private |
The documentation for this class was generated from the following file: