![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
CycloneDX export settings of a user (defaults) or of an upload. More...

Public Member Functions | |
| __construct (bool $licenseComment=false, bool $ignoreFilesWithoutInfo=false, bool $osselotExport=false, ?string $tagNamespace=null, ?string $specVersion=null) | |
| toUserSettings () | |
| toReportInfo () | |
| isLicenseCommentEnabled () | |
| isLicenseCommentChecked () | |
| isIgnoreFilesWithoutInfo () | |
| isOsselotExport () | |
| getTagNamespace () | |
| getSpecVersion () | |
Static Public Member Functions | |
| static | normaliseNamespace (?string $namespace) |
| static | normaliseSpecVersion (?string $version) |
| static | fromUserSettings (?string $csv) |
| static | fromReportInfo (?string $json) |
Public Attributes | |
| const | SUPPORTED_VERSIONS = ['1.4', '1.5', '1.6', '1.7'] |
| const | DEFAULT_VERSION = '1.7' |
| const | DEFAULT_NAMESPACE = 'fossology:' |
| const | MAX_NAMESPACE_LENGTH = 64 |
| const | NAMESPACE_PATTERN = '/^[A-Za-z0-9._-]+(:[A-Za-z0-9._-]+)*:$/' |
Static Private Member Functions | |
| static | flag (bool $value) |
Private Attributes | |
| $licenseComment | |
| $ignoreFilesWithoutInfo | |
| $osselotExport | |
| $tagNamespace | |
| $specVersion | |
CycloneDX export settings of a user (defaults) or of an upload.
users.cyclonedx_settings holds the CSV "osselot,comment,ignore[,namespace,specVersion]" (the last two are optional for rows written before they existed); report_info.ri_cyclonedx_selection holds the JSON produced by toReportInfo().
Definition at line 20 of file CycloneDxSettings.php.
| Fossology\Lib\Data\Report\CycloneDxSettings::__construct | ( | bool | $licenseComment = false, |
| bool | $ignoreFilesWithoutInfo = false, |
||
| bool | $osselotExport = false, |
||
| ?string | $tagNamespace = null, |
||
| ?string | $specVersion = null |
||
| ) |
Invalid namespace or version values fall back to the defaults.
Definition at line 43 of file CycloneDxSettings.php.
|
static |
| string | null | $json | Value of report_info.ri_cyclonedx_selection |
Definition at line 108 of file CycloneDxSettings.php.
|
static |
| string | null | $csv | Value of users.cyclonedx_settings |
Definition at line 87 of file CycloneDxSettings.php.
| Fossology\Lib\Data\Report\CycloneDxSettings::isLicenseCommentChecked | ( | ) |
Definition at line 146 of file CycloneDxSettings.php.
| Fossology\Lib\Data\Report\CycloneDxSettings::isLicenseCommentEnabled | ( | ) |
Definition at line 138 of file CycloneDxSettings.php.
|
static |
| string | null | $namespace | User input, with or without the trailing colon |
Definition at line 58 of file CycloneDxSettings.php.
|
static |
| string | null | $version |
Definition at line 78 of file CycloneDxSettings.php.
| Fossology\Lib\Data\Report\CycloneDxSettings::toReportInfo | ( | ) |
Definition at line 123 of file CycloneDxSettings.php.
| Fossology\Lib\Data\Report\CycloneDxSettings::toUserSettings | ( | ) |
Definition at line 97 of file CycloneDxSettings.php.
| const Fossology\Lib\Data\Report\CycloneDxSettings::NAMESPACE_PATTERN = '/^[A-Za-z0-9._-]+(:[A-Za-z0-9._-]+)*:$/' |
Colon-separated segments ending in a colon; never contains a comma.
Definition at line 27 of file CycloneDxSettings.php.