|
| | getUri ($fileBase) |
| | Get the URI for the given package. More...
|
| |
| | computeUri ($uploadId) |
| | For a given upload, compute the URI. More...
|
| |
| | renderPackage ($uploadId) |
| | Given an upload id, render the report string. More...
|
| |
| | generateFileComponents ($filesWithLicenses, $treeTableName, $uploadId, $itemTreeBounds, $customLicenseTexts=array()) |
| | Generate the components by files. More...
|
| |
| | writeReport ($packageNodes, $uploadId) |
| | Write the report the file and update report table. More...
|
| |
| | updateReportTable ($uploadId, $jobId, $fileName) |
| | Update the reportgen table with new report path. More...
|
| |
| | getMimeType ($uploadId) |
| | Get the mime type of the upload. More...
|
| |
| | getFileMimeType ($fileId, $treeTableName) |
| | Get the mime type of a file. More...
|
| |
|
| | getLicenseDataForCycloneDX ($licObj, $licenseId, $customLicenseTexts, $isCustomText=false, $includeText=true) |
| | Helper to create license data array taking custom text into account. More...
|
| |
|
| static | heartbeat_handler ($signo) |
| | Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More...
|
| |
Definition at line 42 of file cyclonedx.php.
◆ computeUri()
| Fossology\CycloneDX\CycloneDXAgent::computeUri |
( |
|
$uploadId | ) |
|
|
protected |
For a given upload, compute the URI.
- Parameters
-
Definition at line 173 of file cyclonedx.php.
◆ generateFileComponents()
| Fossology\CycloneDX\CycloneDXAgent::generateFileComponents |
( |
|
$filesWithLicenses, |
|
|
|
$treeTableName, |
|
|
|
$uploadId, |
|
|
|
$itemTreeBounds, |
|
|
|
$customLicenseTexts = array() |
|
) |
| |
|
protected |
Generate the components by files.
- Parameters
-
| FileNode[] | $filesWithLicenses | |
| string | $treeTableName | |
| int | $uploadId | |
- Returns
- array Components list
Definition at line 328 of file cyclonedx.php.
◆ getFileMimeType()
| Fossology\CycloneDX\CycloneDXAgent::getFileMimeType |
( |
|
$fileId, |
|
|
|
$treeTableName |
|
) |
| |
|
protected |
Get the mime type of a file.
- Parameters
-
| int | $fileId | File ID |
| string | $treeTableName | Tree table name |
- Returns
- string Mime type of the file
Definition at line 491 of file cyclonedx.php.
◆ getLicenseDataForCycloneDX()
| Fossology\CycloneDX\CycloneDXAgent::getLicenseDataForCycloneDX |
( |
|
$licObj, |
|
|
|
$licenseId, |
|
|
|
$customLicenseTexts, |
|
|
|
$isCustomText = false, |
|
|
|
$includeText = true |
|
) |
| |
|
private |
Helper to create license data array taking custom text into account.
- Parameters
-
| \Fossology\Lib\Data\License | $licObj | |
| string | int | $licenseId | |
| array | $customLicenseTexts | |
| bool | $isCustomText | |
| bool | $includeText | |
- Returns
- array
Definition at line 436 of file cyclonedx.php.
◆ getMimeType()
| Fossology\CycloneDX\CycloneDXAgent::getMimeType |
( |
|
$uploadId | ) |
|
|
protected |
Get the mime type of the upload.
- Returns
- string Mime type of the upload
Definition at line 473 of file cyclonedx.php.
◆ getUri()
| Fossology\CycloneDX\CycloneDXAgent::getUri |
( |
|
$fileBase | ) |
|
|
protected |
Get the URI for the given package.
- Parameters
-
| string | $fileBase | Name of the upload |
- Returns
- string URI for the upload
Definition at line 158 of file cyclonedx.php.
◆ processUploadId()
| Fossology\CycloneDX\CycloneDXAgent::processUploadId |
( |
|
$uploadId | ) |
|
◆ renderPackage()
| Fossology\CycloneDX\CycloneDXAgent::renderPackage |
( |
|
$uploadId | ) |
|
|
protected |
Given an upload id, render the report string.
- Parameters
-
- Returns
- array Rendered report string
Definition at line 189 of file cyclonedx.php.
◆ updateReportTable()
| Fossology\CycloneDX\CycloneDXAgent::updateReportTable |
( |
|
$uploadId, |
|
|
|
$jobId, |
|
|
|
$fileName |
|
) |
| |
|
protected |
Update the reportgen table with new report path.
- Parameters
-
| int | $uploadId | Upload id |
| int | $jobId | Job id |
| string | $fileName | File name of the report |
Definition at line 422 of file cyclonedx.php.
◆ writeReport()
| Fossology\CycloneDX\CycloneDXAgent::writeReport |
( |
|
$packageNodes, |
|
|
|
$uploadId |
|
) |
| |
|
protected |
Write the report the file and update report table.
- Parameters
-
| array | $packageNodes | |
| int | $uploadId | |
Definition at line 399 of file cyclonedx.php.
◆ $agentNames
| array Fossology\CycloneDX\CycloneDXAgent::$agentNames = AgentRef::AGENT_LIST |
|
protected |
◆ $clearingDao
| ClearingDao Fossology\CycloneDX\CycloneDXAgent::$clearingDao |
|
private |
◆ $dbManager
| DbManager Fossology\CycloneDX\CycloneDXAgent::$dbManager |
|
protected |
◆ $licenseDao
| LicenseDao Fossology\CycloneDX\CycloneDXAgent::$licenseDao |
|
private |
◆ $licenseMap
| LicenseMap Fossology\CycloneDX\CycloneDXAgent::$licenseMap |
|
private |
◆ $licensesInDocument
| SpdxLicenseInfo[] Fossology\CycloneDX\CycloneDXAgent::$licensesInDocument = [] |
|
private |
List of licenses found in the document.
Definition at line 95 of file cyclonedx.php.
◆ $outputFormat
| string Fossology\CycloneDX\CycloneDXAgent::$outputFormat = self::DEFAULT_OUTPUT_FORMAT |
|
protected |
◆ $reportGenerator
◆ $reportutils
| ReportUtils Fossology\CycloneDX\CycloneDXAgent::$reportutils |
|
private |
◆ $uploadDao
| UploadDao Fossology\CycloneDX\CycloneDXAgent::$uploadDao |
|
private |
◆ $uri
| string Fossology\CycloneDX\CycloneDXAgent::$uri |
|
protected |
The documentation for this class was generated from the following file: