![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Wrapper class for obligation map. More...

Public Member Functions | |
| __construct (DbManager $dbManager) | |
| getAvailableShortnames ($candidate=false) | |
| Get the license id from the shortname. More... | |
| getIdFromShortname ($shortname, $candidate=false) | |
| Get the license ids from the shortname. More... | |
| getShortnameFromId ($rfId, $candidate=false) | |
| Get the shortname of the license by Id. More... | |
| getLicenseList ($obId, $candidate=false) | |
| Get the list of licenses associated with the obligation. More... | |
| isLicenseAssociated ($obId, $licId, $candidate=false) | |
| Check if the obligation is already associated with the license. More... | |
| associateLicenseWithObligation ($obId, $licId, $candidate=false) | |
| Associate a license with an obligation. More... | |
| unassociateLicenseFromObligation ($obId, $licId=0, $candidate=false) | |
| Unassociate a license from an obligation. More... | |
| getObligations () | |
| Get all obligations from DB. More... | |
| getTopicNameFromId ($ob_pk) | |
| Get the obligation topic from the obligation id. More... | |
| associateLicenseFromLicenseList ($obligationId, $licenses, $candidate=false) | |
| unassociateLicenseFromLicenseList ($obligationId, $licenses, $candidate=false) | |
Private Attributes | |
| $dbManager | |
Wrapper class for obligation map.
Definition at line 27 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::__construct | ( | DbManager | $dbManager | ) |
Constructor
| DbManager | $dbManager | DB manager to use |
Definition at line 38 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::associateLicenseFromLicenseList | ( | $obligationId, | |
| $licenses, | |||
$candidate = false |
|||
| ) |
Associate a list of license IDs with given obligation.
| integer | $obligationId | Obligation to be associated |
| array | $licenses | Array of licenses to be associated |
| boolean | $candidate | Is a candidate association? |
Definition at line 255 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::associateLicenseWithObligation | ( | $obId, | |
| $licId, | |||
$candidate = false |
|||
| ) |
Associate a license with an obligation.
| int | $obId | Obligation id |
| int | $licId | License id |
| bool | $candidate | Is a candidate obligation? |
Definition at line 176 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getAvailableShortnames | ( | $candidate = false | ) |
Get the license id from the shortname.
| bool | $candidate | Is a candidate license |
Definition at line 48 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getIdFromShortname | ( | $shortname, | |
$candidate = false |
|||
| ) |
Get the license ids from the shortname.
| string | $shortname | Short name of the license |
| bool | $candidate | Is a candidate license? |
Definition at line 77 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getLicenseList | ( | $obId, | |
$candidate = false |
|||
| ) |
Get the list of licenses associated with the obligation.
| int | $obId | Obligation id |
| bool | $candidate | Is a candidate obligation? |
Definition at line 119 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getObligations | ( | ) |
| Fossology\Lib\BusinessRules\ObligationMap::getShortnameFromId | ( | $rfId, | |
$candidate = false |
|||
| ) |
Get the shortname of the license by Id.
| int | $rfId | ID of the license |
| bool | $candidate | Is a candidate license? |
Definition at line 101 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getTopicNameFromId | ( | $ob_pk | ) |
Get the obligation topic from the obligation id.
| int | $ob_pk | Obligation id |
Definition at line 241 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::isLicenseAssociated | ( | $obId, | |
| $licId, | |||
$candidate = false |
|||
| ) |
Check if the obligation is already associated with the license.
| int | $obId | Obligation id |
| int | $licId | License id |
| bool | $candidate | Is a candidate obligation? |
Definition at line 147 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::unassociateLicenseFromLicenseList | ( | $obligationId, | |
| $licenses, | |||
$candidate = false |
|||
| ) |
Unassociate a list of license IDs with given obligation.
| integer | $obligationId | Obligation to be unassociated |
| array | $licenses | Array of licenses to be unassociated |
| boolean | $candidate | Is a candidate association? |
Definition at line 273 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::unassociateLicenseFromObligation | ( | $obId, | |
$licId = 0, |
|||
$candidate = false |
|||
| ) |
Unassociate a license from an obligation.
| int | $obId | Obligation id |
| int | $licId | License id |
| bool | $candidate | Is a candidate obligation? |
Definition at line 199 of file ObligationMap.php.
|
private |
DB manager object
Definition at line 32 of file ObligationMap.php.