Model to hold add settings for new scan.
More...
Model to hold add settings for new scan.
Definition at line 29 of file ScanOptions.php.
◆ __construct()
Fossology\UI\Api\Models\ScanOptions::__construct |
( |
|
$analysis, |
|
|
|
$reuse, |
|
|
|
$decider, |
|
|
|
$scancode |
|
) |
| |
◆ getArray()
Fossology\UI\Api\Models\ScanOptions::getArray |
( |
| ) |
|
◆ prepareAgents()
Fossology\UI\Api\Models\ScanOptions::prepareAgents |
( |
Request & |
$request | ) |
|
|
private |
Prepare agentsToAdd string based on Analysis settings.
- Parameters
-
Request | $request | Request object to manipulate |
- Returns
- string[]
Definition at line 128 of file ScanOptions.php.
◆ prepareDecider()
Fossology\UI\Api\Models\ScanOptions::prepareDecider |
( |
Request & |
$request | ) |
|
|
private |
◆ prepareReuser()
Fossology\UI\Api\Models\ScanOptions::prepareReuser |
( |
Request & |
$request | ) |
|
|
private |
◆ prepareScancode()
Fossology\UI\Api\Models\ScanOptions::prepareScancode |
( |
Request & |
$request | ) |
|
|
private |
◆ scheduleAgents()
Fossology\UI\Api\Models\ScanOptions::scheduleAgents |
( |
|
$folderId, |
|
|
|
$uploadId, |
|
|
|
$newUpload = true |
|
) |
| |
Schedule the agents for the given upload in the given folder based on current settings.
- Parameters
-
integer | $folderId | Folder with the upload |
integer | $uploadId | Upload to be scanned |
boolean | $newUpload | If true, do not check if the folder contains the upload. Should be false for existing uploads. |
- Returns
- \Fossology\UI\Api\Models\Info
- Exceptions
-
HttpNotFoundException | If the folder does not contain the upload |
HttpForbiddenException | If the user does not have write access to the upload |
Definition at line 91 of file ScanOptions.php.
◆ $analysis
Analysis Fossology\UI\Api\Models\ScanOptions::$analysis |
|
private |
◆ $decider
Decider Fossology\UI\Api\Models\ScanOptions::$decider |
|
private |
◆ $reuse
Reuser Fossology\UI\Api\Models\ScanOptions::$reuse |
|
private |
◆ $scancode
Scancode Fossology\UI\Api\Models\ScanOptions::$scancode |
|
private |
The documentation for this class was generated from the following file: