FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\BusinessRules\DetectLicensesFolder Class Reference

Detects licenses declard inside LICENSES directory. More...

Collaboration diagram for Fossology\Lib\BusinessRules\DetectLicensesFolder:
Collaboration graph

Public Member Functions

 getDeclearedLicenses ($uploadId)
 Get licenses decleared in LICENSES folder. More...
 
 cleanLicenseId ($licenseFileName)
 Truncate .txt from licenseFileName. More...
 

Private Attributes

 $uploadDao
 
 $searchHelperDao
 

Detailed Description

Detects licenses declard inside LICENSES directory.

Definition at line 18 of file DetectLicensesFolder.php.

Member Function Documentation

◆ cleanLicenseId()

Fossology\Lib\BusinessRules\DetectLicensesFolder::cleanLicenseId (   $licenseFileName)

Truncate .txt from licenseFileName.

Parameters
string$licenseFileName- Filename of Declared License
Returns
string Clean license Id

Definition at line 75 of file DetectLicensesFolder.php.

◆ getDeclearedLicenses()

Fossology\Lib\BusinessRules\DetectLicensesFolder::getDeclearedLicenses (   $uploadId)

Get licenses decleared in LICENSES folder.

Parameters
int$uploadId
Returns
array $licenseId, if found. Empty array otherwise.

Definition at line 37 of file DetectLicensesFolder.php.


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