![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|

Public Member Functions | |
| getVersions (string $pkgName) | |
| fetchSpdxFile (string $pkgName, string $version) | |
| clearCache () | |
Private Member Functions | |
| isValidXml (string $content) | |
Private Attributes | |
| Client | $client |
| string | $cacheDir |
| int | $cacheTtl = 86400 |
Definition at line 13 of file OsselotLookupHelper.php.
| Fossology\Lib\Util\OsselotLookupHelper::clearCache | ( | ) |
Clears the cache directory.
Definition at line 215 of file OsselotLookupHelper.php.
| Fossology\Lib\Util\OsselotLookupHelper::fetchSpdxFile | ( | string | $pkgName, |
| string | $version | ||
| ) |
Downloads (or retrieves from cache) the SPDX RDF/XML file for a given package/version and returns the local cache pathname, or null if all attempts fail.
| string | $pkgName | Package identifier |
| string | $version | Version string |
Definition at line 109 of file OsselotLookupHelper.php.
| Fossology\Lib\Util\OsselotLookupHelper::getVersions | ( | string | $pkgName | ) |
Fetches the list of versions for a given package from the OSSelot curated API.
| string | $pkgName | Package identifier to look up (e.g., "angular"). |
Definition at line 40 of file OsselotLookupHelper.php.
|
private |
Basic XML validation
Definition at line 196 of file OsselotLookupHelper.php.