The Spasht agent.
More...
The Spasht agent.
Definition at line 26 of file SpashtAgent.php.
◆ getInformation()
Fossology\Spasht\SpashtAgent::getInformation |
( |
|
$details, |
|
|
|
$pfileSha1AndpfileId |
|
) |
| |
|
protected |
Search pfile for uploads into clearlydefined
- Parameters
-
Coordinate | $details | |
array | $pfileSha1AndpfileId | Associated pfile and sha1 array |
- Returns
- array Array containing license, copyright and pfile info. String containing error message if and error occurred
Guzzle/http Guzzle Client that connect with ClearlyDefined API
Definition at line 118 of file SpashtAgent.php.
◆ insertCopyrightSpashtAgentRecord()
Fossology\Spasht\SpashtAgent::insertCopyrightSpashtAgentRecord |
( |
|
$body, |
|
|
|
$agentId |
|
) |
| |
|
protected |
Insert the Copyright Details in Spasht Agent table.
- Parameters
-
$agentId | Integer |
$license | Array |
Definition at line 270 of file SpashtAgent.php.
◆ insertLicensesSpashtAgentRecord()
Fossology\Spasht\SpashtAgent::insertLicensesSpashtAgentRecord |
( |
|
$body, |
|
|
|
$agentId |
|
) |
| |
|
protected |
◆ processUploadId()
Fossology\Spasht\SpashtAgent::processUploadId |
( |
|
$uploadId | ) |
|
◆ searchUploadIdInSpasht()
Fossology\Spasht\SpashtAgent::searchUploadIdInSpasht |
( |
|
$uploadId | ) |
|
|
protected |
This function is responsible for available upload in the spasht db. If the upload is available then only the spasht agent will run.
- Parameters
-
- Returns
- Coordinate|boolean
Definition at line 99 of file SpashtAgent.php.
◆ separateLicenses()
Fossology\Spasht\SpashtAgent::separateLicenses |
( |
|
$rawLicenses | ) |
|
|
private |
Convert the license string into fossology format
- Parameters
-
- Returns
- string Fossology license shortname
Definition at line 202 of file SpashtAgent.php.
◆ $licenseDao
LicenseDao Fossology\Spasht\SpashtAgent::$licenseDao |
|
private |
◆ $spashtDao
SpashtDao Fossology\Spasht\SpashtAgent::$spashtDao |
|
private |
◆ $uploadDao
UploadDao Fossology\Spasht\SpashtAgent::$uploadDao |
|
private |
The documentation for this class was generated from the following file: