FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport Class Reference

Helper class to export license list as a YAML from the DB. More...

Collaboration diagram for Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport:
Collaboration graph

Public Member Functions

 __construct (DbManager $dbManager, CompatibilityDao $compatibilityDao)
 
 createYaml ($lr=0)
 Create the YAML from the DB. More...
 

Private Attributes

 $dbManager
 
 $compatibilityDao
 

Detailed Description

Helper class to export license list as a YAML from the DB.

Definition at line 22 of file LicenseCompatibilityRulesYamlExport.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport::__construct ( DbManager  $dbManager,
CompatibilityDao  $compatibilityDao 
)

Constructor

Parameters
DbManager$dbManagerDB manager to use.
CompatibilityDao$compatibilityDaoCompatibility DAO to use

Definition at line 35 of file LicenseCompatibilityRulesYamlExport.php.

Member Function Documentation

◆ createYaml()

Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport::createYaml (   $lr = 0)

Create the YAML from the DB.

Parameters
int$lrSet the license ID to get only one license, set 0 to get all
Returns
string yaml

Definition at line 46 of file LicenseCompatibilityRulesYamlExport.php.

Member Data Documentation

◆ $compatibilityDao

CompatibilityDao Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport::$compatibilityDao
private

Compatibility Dao object

Definition at line 29 of file LicenseCompatibilityRulesYamlExport.php.

◆ $dbManager

DbManager Fossology\Lib\Application\LicenseCompatibilityRulesYamlExport::$dbManager
private

DB manager in use

Definition at line 26 of file LicenseCompatibilityRulesYamlExport.php.


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