![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|

Public Member Functions | |
| addClearingStatus (&$filesWithLicenses, ItemTreeBounds $itemTreeBounds, $groupId) | |
| Add clearing status to the files. More... | |
| addScannerResults (&$filesWithLicenses, ItemTreeBounds $itemTreeBounds, $groupId, &$licensesInDocument) | |
| Attach finding agents to the files and return names of scanners. More... | |
| getFilesWithLicensesFromClearings (ItemTreeBounds $itemTreeBounds, $groupId, $agentObj, &$licensesInDocument) | |
| Given an ItemTreeBounds, get the files with clearings. More... | |
| updateOrInsertReportgenEntry ($upload_fk, $job_fk, $filepath) | |
Protected Attributes | |
| $agentNames = AgentRef::AGENT_LIST | |
| $container | |
| $dbManager | |
Private Attributes | |
| $licenseMap | |
| $uploadDao | |
| $licenseDao | |
| $clearingDao | |
Definition at line 29 of file ReportUtils.php.
| Fossology\Lib\Report\ReportUtils::addClearingStatus | ( | & | $filesWithLicenses, |
| ItemTreeBounds | $itemTreeBounds, | ||
| $groupId | |||
| ) |
Add clearing status to the files.
| FileNode[] | &$filesWithLicenses | |
| ItemTreeBounds | $itemTreeBounds | |
| int | $groupId |
Definition at line 79 of file ReportUtils.php.
| Fossology\Lib\Report\ReportUtils::addScannerResults | ( | & | $filesWithLicenses, |
| ItemTreeBounds | $itemTreeBounds, | ||
| $groupId, | |||
| & | $licensesInDocument | ||
| ) |
Attach finding agents to the files and return names of scanners.
| FileNode[] | &$filesWithLicenses | |
| ItemTreeBounds | $itemTreeBounds | |
| int | $groupId | |
| SpdxLicenseInfo[] | &$licensesInDocument |
Definition at line 109 of file ReportUtils.php.
| Fossology\Lib\Report\ReportUtils::getFilesWithLicensesFromClearings | ( | ItemTreeBounds | $itemTreeBounds, |
| $groupId, | |||
| $agentObj, | |||
| & | $licensesInDocument | ||
| ) |
Given an ItemTreeBounds, get the files with clearings.
| ItemTreeBounds | $itemTreeBounds | |
| int | $groupId | |
| Agent | $agentObj | |
| SpdxLicenseInfo[] | &$licensesInDocument |
Definition at line 212 of file ReportUtils.php.
| Fossology\Lib\Report\ReportUtils::updateOrInsertReportgenEntry | ( | $upload_fk, | |
| $job_fk, | |||
| $filepath | |||
| ) |
Update or insert an entry in the reportgen table.
This function checks if an entry with the specified upload_fk and filepath exists in the reportgen table. If it exists, it updates the job_fk for that row. If it does not exist, a new row is inserted with the provided values.
| int | $upload_fk | Foreign key for the upload. |
| int | $job_fk | ID of the job to be updated or inserted. |
| string | $filepath | Filepath associated with the entry. |
Definition at line 308 of file ReportUtils.php.
|
protected |
Agent names mapping
Definition at line 34 of file ReportUtils.php.
|
private |
ClearingDao object
Definition at line 59 of file ReportUtils.php.
|
protected |
Symfony DI container
Definition at line 38 of file ReportUtils.php.
|
protected |
DbManager object
Definition at line 46 of file ReportUtils.php.
|
private |
LicenseDao object
Definition at line 54 of file ReportUtils.php.
|
private |
LicenseMap object
Definition at line 42 of file ReportUtils.php.
|
private |
UploadDao object
Definition at line 50 of file ReportUtils.php.