Utilities for SPDX2.
More...
|
static | $prefix = "LicenseRef-" |
| Prefix to be used.
|
|
Utilities for SPDX2.
Definition at line 25 of file spdx2utils.php.
static Fossology\SpdxTwo\SpdxTwoUtils::addPrefixOnDemand |
( |
|
$license, |
|
|
|
$spdxValidityChecker = null |
|
) |
| |
|
static |
Add prefix to the license based on SPDX2 standards.
- Parameters
-
string | $license | |
callable | $spdxValidityChecker | |
- Returns
- string
Definition at line 58 of file spdx2utils.php.
static Fossology\SpdxTwo\SpdxTwoUtils::addPrefixOnDemandKeys |
( |
|
$licenses, |
|
|
|
$spdxValidityChecker = null |
|
) |
| |
|
static |
Add prefix to license keys.
- Parameters
-
array | $licenses | |
callable | $spdxValidityChecker | |
- Returns
- string[]
Definition at line 87 of file spdx2utils.php.
static Fossology\SpdxTwo\SpdxTwoUtils::addPrefixOnDemandList |
( |
|
$licenses, |
|
|
|
$spdxValidityChecker = null |
|
) |
| |
|
static |
Add prefix to license list.
- Parameters
-
array | $licenses | |
callable | $spdxValidityChecker | |
- Returns
- array
Definition at line 102 of file spdx2utils.php.
static Fossology\SpdxTwo\SpdxTwoUtils::implodeLicenses |
( |
|
$licenses, |
|
|
|
$spdxValidityChecker = null |
|
) |
| |
|
static |
Implode licenses with "AND" or "OR".
- Parameters
-
string | $licenses | |
callable | $spdxValidityChecker | |
- Returns
- string
Definition at line 116 of file spdx2utils.php.
static Fossology\SpdxTwo\SpdxTwoUtils::preWorkOnArgsFlp |
( |
|
$args, |
|
|
|
$key1, |
|
|
|
$key2 |
|
) |
| |
|
static |
For a given set of arguments assign $args[$key1] and $args[$key2].
Get the array of arguments and find $key1 and $key2 values and assign to $args[$key1] and $args[$key2].
- Parameters
-
string | $args | String array |
string | $key1 | Key1 |
string | $key2 | Key2 |
- Returns
- string[] $args
Definition at line 39 of file spdx2utils.php.
The documentation for this class was generated from the following file: