FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
exportLicenseRef Class Reference
Collaboration diagram for exportLicenseRef:
Collaboration graph

Public Member Functions

 startProcessingLicenseData ()
 
 getLicenseNameWithOutSuffix ($RFShortName)
 check if -only or -or-later exists. More...
 
 getListSPDX ($type, $URL, $updateWithNew, $updateExisting, $addNewLicense, $existingLicenseRefData)
 get SPDX license or exception list and update licenseref.json More...
 

Private Attributes

 $mapArrayData
 

Detailed Description

Definition at line 26 of file exportLicenseRefUsingSPDX.php.

Member Function Documentation

exportLicenseRef::getLicenseNameWithOutSuffix (   $RFShortName)

check if -only or -or-later exists.

Check if -only or -or-later exists

Returns
license name after concatunation otherwise actual license name.

Definition at line 133 of file exportLicenseRefUsingSPDX.php.

exportLicenseRef::getListSPDX (   $type,
  $URL,
  $updateWithNew,
  $updateExisting,
  $addNewLicense,
  $existingLicenseRefData 
)

get SPDX license or exception list and update licenseref.json

get SPDX license or exception list update the licenseref.json file with changes in existing license text or add a new license if licenseref.json does'nt contain it. Create a new licenserefnew.json file from where it is getting executed. user need to copy the additional license texts from licenserefnew.json to actual licenseref.json

Definition at line 155 of file exportLicenseRefUsingSPDX.php.

Member Data Documentation

mapArrayData exportLicenseRef::$mapArrayData
private
Initial value:
= array(
'licenses' => array('licenseId', 'licenseText', 'name'),
'exceptions' => array('licenseExceptionId', 'licenseExceptionText', 'name')
)

actual names for license/exception in SPDX for text and licenseid

Definition at line 32 of file exportLicenseRefUsingSPDX.php.


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