FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Dao\SoftwareHeritageDao Class Reference
Collaboration diagram for Fossology\Lib\Dao\SoftwareHeritageDao:
Collaboration graph

Public Member Functions

 __construct (DbManager $dbManager, Logger $logger, UploadDao $uploadDao)
 
 getSoftwareHeritagePfileFk ($uploadId)
 Get all the pfile_fk stored in software heritage table. More...
 
 setSoftwareHeritageDetails ($pfileId, $licenseDetails, $status)
 Store a record of Software Heritage license info in table. More...
 
 getSoftwareHetiageRecord ($pfileId)
 Get a record from Software Heritage schema from the PfileId. More...
 

Public Attributes

const SWH_STATUS_OK = 200
 
const SWH_BAD_REQUEST = 400
 
const SWH_NOT_FOUND = 404
 
const SWH_RATELIMIT_EXCEED = 429
 

Private Attributes

 $dbManager
 
 $logger
 
 $uploadDao
 

Detailed Description

Definition at line 18 of file SoftwareHeritageDao.php.

Member Function Documentation

◆ getSoftwareHeritagePfileFk()

Fossology\Lib\Dao\SoftwareHeritageDao::getSoftwareHeritagePfileFk (   $uploadId)

Get all the pfile_fk stored in software heritage table.

Parameters
Integer$uploadId
Returns
array

Definition at line 45 of file SoftwareHeritageDao.php.

◆ getSoftwareHetiageRecord()

Fossology\Lib\Dao\SoftwareHeritageDao::getSoftwareHetiageRecord (   $pfileId)

Get a record from Software Heritage schema from the PfileId.

Parameters
int$pfileId
Returns
array

Definition at line 75 of file SoftwareHeritageDao.php.

◆ setSoftwareHeritageDetails()

Fossology\Lib\Dao\SoftwareHeritageDao::setSoftwareHeritageDetails (   $pfileId,
  $licenseDetails,
  $status 
)

Store a record of Software Heritage license info in table.

Parameters
Integer$pfileId
String$licenseDetails
Returns
bool

Definition at line 62 of file SoftwareHeritageDao.php.


The documentation for this class was generated from the following file: