![]()  | 
  
    FOSSology
    4.6.0-rc1
    
   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 list of license shortnames.  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) | |
| getObligationById ($ob_pk) | |
| deleteObligation ($ob_pk) | |
Private Attributes | |
| $dbManager | |
Wrapper class for obligation map.
Definition at line 16 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::__construct | ( | DbManager | $dbManager | ) | 
Constructor
| DbManager | $dbManager | DB manager to use | 
Definition at line 27 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 250 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 171 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::deleteObligation | ( | $ob_pk | ) | 
Delete obligation and unassociate all licenses.
| int | $ob_pk | Obligation ID | 
Definition at line 292 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getAvailableShortnames | ( | $candidate = false | ) | 
Get the list of license shortnames.
If candidate license, return list of all licenses. If not-candidate license, return list of licenses which have conclusion on self.
| bool | $candidate | Is a candidate license | 
Definition at line 41 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 72 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 114 of file ObligationMap.php.
| Fossology\Lib\BusinessRules\ObligationMap::getObligationById | ( | $ob_pk | ) | 
Get obligation by id
| int | $ob_pk | Obligation ID | 
Definition at line 280 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 96 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 236 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 142 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 268 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 194 of file ObligationMap.php.
      
  | 
  private | 
DB manager object
Definition at line 21 of file ObligationMap.php.