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

Public Member Functions

 getObligations ($licenseStatements, $mainLicenseStatements, $uploadId, $groupId)
 For given list of license statements, return obligations and white lists. More...
 
 getBulkAddLicenseList ($uploadId, $groupId)
 Get list of licenses added by Monk bulk. More...
 
 groupObligations ($obligations, $uploadId)
 Group obligations based on $groupBy. More...
 
 contentOnly ($licenseStatements)
 From a list of license statements, return only license id. More...
 

Private Attributes

 $licenseDao
 
 $clearingDao
 
 $uploadDao
 

Detailed Description

Definition at line 19 of file ObligationsGetter.php.

Member Function Documentation

◆ contentOnly()

Fossology\Lib\Report\ObligationsGetter::contentOnly (   $licenseStatements)

From a list of license statements, return only license id.

Parameters
array$licenseStatements
Returns
array List of license ids

Definition at line 175 of file ObligationsGetter.php.

◆ getBulkAddLicenseList()

Fossology\Lib\Report\ObligationsGetter::getBulkAddLicenseList (   $uploadId,
  $groupId 
)

Get list of licenses added by Monk bulk.

Parameters
int$uploadId
int$groupId
Returns
array List of license ids

Definition at line 92 of file ObligationsGetter.php.

◆ getObligations()

Fossology\Lib\Report\ObligationsGetter::getObligations (   $licenseStatements,
  $mainLicenseStatements,
  $uploadId,
  $groupId 
)

For given list of license statements, return obligations and white lists.

Parameters
array$licenseStatements
array$mainLicenseStatements
int$uploadId
int$groupId
Returns
array [obligations, whitelist]

Definition at line 53 of file ObligationsGetter.php.

◆ groupObligations()

Fossology\Lib\Report\ObligationsGetter::groupObligations (   $obligations,
  $uploadId 
)

Group obligations based on $groupBy.

Parameters
array$obligations
Returns
array

Definition at line 124 of file ObligationsGetter.php.

Member Data Documentation

◆ $clearingDao

ClearingDao Fossology\Lib\Report\ObligationsGetter::$clearingDao
private

ClearingDao object

Definition at line 29 of file ObligationsGetter.php.

◆ $licenseDao

LicenseDao Fossology\Lib\Report\ObligationsGetter::$licenseDao
private

LicenseDao object

Definition at line 24 of file ObligationsGetter.php.

◆ $uploadDao

UploadDao Fossology\Lib\Report\ObligationsGetter::$uploadDao
private

UploadDao object

Definition at line 34 of file ObligationsGetter.php.


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