FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager, Logger $logger, LicenseDao $licenseDao, AgentDao $agentDao) | |
getAllRules () | |
Get all the existing rules present in the database. More... | |
insertRule ($firstName, $secondName, $firstType, $secondType, $comment, $result) | |
Insert new rule in the database. More... | |
updateRuleFromArray ($ruleArray) | |
Update the existing rules. More... | |
deleteRule ($rulePk) | |
Delete a license compatibility rule. More... | |
getDefaultCompatibility () | |
Private Member Functions | |
isRuleIdValid ($rulePk) | |
Check if rule ID exists in DB. More... | |
Private Attributes | |
$dbManager | |
$logger | |
$licenseDao | |
$agentDao | |
$defaultCompatibility | |
$agentName | |
Definition at line 21 of file CompatibilityDao.php.
Fossology\Lib\Dao\CompatibilityDao::deleteRule | ( | $rulePk | ) |
Delete a license compatibility rule.
int | $rulePk | ID of the rule to be deleted |
Definition at line 236 of file CompatibilityDao.php.
Fossology\Lib\Dao\CompatibilityDao::getAllRules | ( | ) |
Get all the existing rules present in the database.
Definition at line 100 of file CompatibilityDao.php.
Fossology\Lib\Dao\CompatibilityDao::getDefaultCompatibility | ( | ) |
Get the default compatibility from the rules table.
Definition at line 260 of file CompatibilityDao.php.
Fossology\Lib\Dao\CompatibilityDao::insertRule | ( | $firstName, | |
$secondName, | |||
$firstType, | |||
$secondType, | |||
$comment, | |||
$result | |||
) |
Insert new rule in the database.
string | $firstName | First license |
string | $secondName | Second license |
string | $firstType | First license type |
string | $secondType | Second license type |
string | $comment | Comment on the rule |
string | $result | Compatibility result of the two licenses |
Definition at line 118 of file CompatibilityDao.php.
|
private |
Check if rule ID exists in DB.
int | $rulePk | Rule ID to check. |
Definition at line 216 of file CompatibilityDao.php.
Fossology\Lib\Dao\CompatibilityDao::updateRuleFromArray | ( | $ruleArray | ) |
Update the existing rules.
array | $ruleArray | Contains the id of the licenses |
Definition at line 156 of file CompatibilityDao.php.