Wrapper class for license map.
More...
|
const | CONCLUSION = 1 |
|
const | TRIVIAL = 2 |
|
const | FAMILY = 3 |
|
const | REPORT = 4 |
|
|
| $dbManager |
|
| $usageId |
|
| $groupId |
|
| $map = array() |
|
Wrapper class for license map.
Definition at line 29 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::__construct |
( |
DbManager |
$dbManager, |
|
|
|
$groupId, |
|
|
|
$usageId = null , |
|
|
|
$full = false |
|
) |
| |
Constructor
- Parameters
-
DbManager | $dbManager | |
int | $groupId | |
int | $usageId | |
bool | $full | |
Definition at line 52 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::getGroupId |
( |
| ) |
|
Get the group id of the map.
- Returns
- number
Definition at line 128 of file LicenseMap.php.
static Fossology\Lib\BusinessRules\LicenseMap::getMappedLicenseRefView |
( |
|
$usageExpr = '$1' | ) |
|
|
static |
Query to get license map view along with license ref.
- Parameters
-
string | $usageExpr | Position of usage id in parameter array |
Definition at line 160 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::getObligationsForLicenseRef |
( |
|
$license_ref, |
|
|
|
$candidate = false |
|
) |
| |
Get all Obligations attached with given license ref.
- Parameters
-
int | $license_ref | ID of license / candidate license |
bool | $candidate | Is the license candidate? |
- Returns
- int[] Array of obligation ids
Definition at line 173 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::getProjectedId |
( |
|
$licenseId | ) |
|
For a given license id, get the projected id.
- Parameters
-
int | $licenseId | License id to be queried |
- Returns
- int Projected license id
Definition at line 91 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::getProjectedShortname |
( |
|
$licenseId, |
|
|
|
$defaultName = null |
|
) |
| |
For a given license id, get the projected shortname.
If the license id is not found in the map, then default name is returned.
- Parameters
-
int | $licenseId | License id to be queried |
string | $defaultName | Default name to return if license not found in map |
- Returns
- string|null Projected shortname or default name
Definition at line 107 of file LicenseMap.php.
Fossology\Lib\BusinessRules\LicenseMap::getTopLevelLicenseRefs |
( |
| ) |
|
Fossology\Lib\BusinessRules\LicenseMap::getUsage |
( |
| ) |
|
Get the Usage of the map.
- Returns
- number
Definition at line 119 of file LicenseMap.php.
The documentation for this class was generated from the following file: