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

Public Member Functions

 __construct (DbManager $dbManager, Logger $logger)
 
 getPfile ($sha1=null, $md5=null, $sha256=null, $size=null)
 
 getScannerFindings ($pfileId)
 
 getConclusions ($groupId, $pfileId)
 
 getUploadForPackage ($pfileId)
 
 haveConclusions ($groupId, $pfileId)
 
 getCopyright ($pfileId)
 

Private Attributes

 $dbManager
 
 $logger
 

Detailed Description

Definition at line 16 of file PfileDao.php.

Member Function Documentation

◆ getConclusions()

Fossology\Lib\Dao\PfileDao::getConclusions (   $groupId,
  $pfileId 
)

Get the list of licenses councluded for given pfile

Parameters
integer$groupIdGroup to filter for
integer$pfileIdPfile to search for
Returns
array Unique, sorted array of latest license decisions or value NONE if all the licenses were removed by user, or value NOASSERTION if no decisions were made

Definition at line 108 of file PfileDao.php.

◆ getCopyright()

Fossology\Lib\Dao\PfileDao::getCopyright (   $pfileId)

Get the list of copyrights for given pfile

Parameters
integer$pfileIdPfile to search
Returns
array Array of copyrights found and not disabled

Definition at line 195 of file PfileDao.php.

◆ getPfile()

Fossology\Lib\Dao\PfileDao::getPfile (   $sha1 = null,
  $md5 = null,
  $sha256 = null,
  $size = null 
)

Get the pfile row matching given checksums

Parameters
string$sha1SHA1 checksum
string$md5MD5 checksum
string$sha256SHA256 checksum
integer$sizeSize in bytes
Returns
NULL|array DB row if found, null otherwise

Definition at line 44 of file PfileDao.php.

◆ getScannerFindings()

Fossology\Lib\Dao\PfileDao::getScannerFindings (   $pfileId)

Get the list of licenses scanned for given pfile

Parameters
integer$pfileIdPfile to search
Returns
array Unique, sorted array of licenses found

Definition at line 81 of file PfileDao.php.

◆ getUploadForPackage()

Fossology\Lib\Dao\PfileDao::getUploadForPackage (   $pfileId)

Get the upload ids where pfile was uploaded as package

Parameters
integer$pfileIdPfile to filter
Returns
array|NULL Array of uploads or null if none found

Definition at line 153 of file PfileDao.php.

◆ haveConclusions()

Fossology\Lib\Dao\PfileDao::haveConclusions (   $groupId,
  $pfileId 
)

Check if pfile have at least one clearing decision

Parameters
integer$groupIdGroup to filter results for
integer$pfileIdPfile to check
Returns
boolean True if have at least one decision, false otherwise

Definition at line 176 of file PfileDao.php.

Member Data Documentation

◆ $dbManager

DbManager Fossology\Lib\Dao\PfileDao::$dbManager
private

DbManager

Definition at line 23 of file PfileDao.php.

◆ $logger

Logger Fossology\Lib\Dao\PfileDao::$logger
private

Logger

Definition at line 28 of file PfileDao.php.


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