FOSSology  4.6.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Data\SpdxLicenseValidator Class Reference

Validate and sanitize SPDX LicenseRef identifiers. More...

Collaboration diagram for Fossology\Lib\Data\SpdxLicenseValidator:
Collaboration graph

Static Public Member Functions

static isValidLicenseRef (string $licenseId)
 
static isLicenseRef (string $licenseId)
 
static extractIdstring (string $licenseId)
 
static getValidationErrors (string $licenseId)
 
static sanitizeLicenseRef (string $licenseId)
 

Public Attributes

const VALID_IDSTRING_PATTERN = '/^[a-zA-Z0-9.\-]+$/'
 

Detailed Description

Validate and sanitize SPDX LicenseRef identifiers.

Definition at line 14 of file SpdxLicenseValidator.php.


The documentation for this class was generated from the following file: