FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager) | |
getAgentFileLicenseMatches (ItemTreeBounds $itemTreeBounds, $usageId=LicenseMap::TRIVIAL) | |
get all the licenses for a single file or uploadtree More... | |
getBulkFileLicenseMatches (ItemTreeBounds $itemTreeBounds) | |
get all the tried bulk recognitions for a single file or uploadtree (currently unused) More... | |
getLicenseRefs ($search=null, $orderAscending=true) | |
getConclusionLicenseRefs ($groupId, $search=null, $orderAscending=true, $exclude=array()) | |
getLicenseArray ($groupId=null) | |
getLicenseIdPerPfileForAgentId (ItemTreeBounds $itemTreeBounds, $selectedAgentId, $includeSubfolders=true, $nameRange=array()) | |
getLicensesPerFileNameForAgentId (ItemTreeBounds $itemTreeBounds, $selectedAgentIds=null, $includeSubfolders=true, $excluding='', $ignore=false, &$clearingDecisionsForLicList=array(), $includeTreeId=false) | |
getLicenseHistogram (ItemTreeBounds $itemTreeBounds, $agentId=null) | |
getLicenseShortnamesContained (ItemTreeBounds $itemTreeBounds, $latestSuccessfulAgentIds=null, $filterLicenses=array('VOID')) | |
getLicenseById ($licenseId, $groupId=null) | |
getLicenseByShortName ($licenseShortname, $groupId=null) | |
getLicenseBySpdxId ($licenseSpdxId, $groupId=null) | |
insertBulkLicense ($userId, $groupId, $uploadTreeId, $licenseRemovals, $refText, $ignoreIrrelevant=true, $delimiters=null, $scanFindingsOnly=false) | |
isNewLicense ($newShortname, $groupId) | |
insertLicense ($shortname, $refText, $spdxId=null) | |
insertUploadLicense ($newShortname, $refText, $groupId, $userId) | |
getLicenseCount () | |
updateCandidate ($rf_pk, $shortname, $fullname, $rfText, $url, $rfNotes, $lastmodified, $userIdmodified, $readyformerge, $riskLvl, $spdxId=null) | |
getLicenseParentById ($licenseId, $groupId=null) | |
getLicenseObligations ($licenseLists, $candidate=false) | |
getLicenseType ($licenseId) | |
Public Attributes | |
const | NO_LICENSE_FOUND = 'No_license_found' |
const | VOID_LICENSE = 'Void' |
Private Member Functions | |
updateStackState (&$pathStack, &$rgtStack, &$lastLft, $row) | |
addToLicensesPerFileName (&$licensesPerFileName, $path, $row, $ignore, &$clearingDecisionsForLicList=array(), $includeTreeId=false) | |
getLicenseByCondition ($condition, $param, $groupId=null) | |
Private Attributes | |
$dbManager | |
$logger | |
$candidatePrefix = '*' | |
Definition at line 22 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getAgentFileLicenseMatches | ( | ItemTreeBounds | $itemTreeBounds, |
$usageId = LicenseMap::TRIVIAL |
|||
) |
get all the licenses for a single file or uploadtree
ItemTreeBounds | $itemTreeBounds | |
int |
Definition at line 47 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getBulkFileLicenseMatches | ( | ItemTreeBounds | $itemTreeBounds | ) |
get all the tried bulk recognitions for a single file or uploadtree (currently unused)
ItemTreeBounds | $itemTreeBounds |
Definition at line 97 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getConclusionLicenseRefs | ( | $groupId, | |
$search = null , |
|||
$orderAscending = true , |
|||
$exclude = array() |
|||
) |
Definition at line 174 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseArray | ( | $groupId = null | ) |
Definition at line 212 of file LicenseDao.php.
|
private |
string | $condition | |
array | $param | |
$groupId |
Definition at line 504 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseById | ( | $licenseId, | |
$groupId = null |
|||
) |
string | $licenseId | |
int | null | $groupId |
Definition at line 540 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseByShortName | ( | $licenseShortname, | |
$groupId = null |
|||
) |
string | $licenseShortname | |
int | null | $groupId |
Definition at line 550 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseBySpdxId | ( | $licenseSpdxId, | |
$groupId = null |
|||
) |
string | $licenseSpdxId | License SPDX ID |
int | $groupId | Group ID |
Definition at line 560 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseCount | ( | ) |
array("License | by Nomos.") |
Definition at line 660 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseHistogram | ( | ItemTreeBounds | $itemTreeBounds, |
$agentId = null |
|||
) |
ItemTreeBounds | $itemTreeBounds | |
null | int | int[] | $agentId |
Definition at line 421 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseIdPerPfileForAgentId | ( | ItemTreeBounds | $itemTreeBounds, |
$selectedAgentId, | |||
$includeSubfolders = true , |
|||
$nameRange = array() |
|||
) |
ItemTreeBounds | $itemTreeBounds | |
int | $selectedAgentId | |
bool | $includeSubfolders | |
array | $nameRange |
Definition at line 239 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseObligations | ( | $licenseLists, | |
$candidate = false |
|||
) |
Get obligations associated to the list of licenses sent.
array | $licenseLists | List of licenses |
boolean | $candidate | Is candidate obligation map? |
Definition at line 714 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseParentById | ( | $licenseId, | |
$groupId = null |
|||
) |
int | $licenseId | |
int | $groupId |
Definition at line 702 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseRefs | ( | $search = null , |
|
$orderAscending = true |
|||
) |
Definition at line 142 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicensesPerFileNameForAgentId | ( | ItemTreeBounds | $itemTreeBounds, |
$selectedAgentIds = null , |
|||
$includeSubfolders = true , |
|||
$excluding = '' , |
|||
$ignore = false , |
|||
& | $clearingDecisionsForLicList = array() , |
||
$includeTreeId = false |
|||
) |
ItemTreeBounds | $itemTreeBounds | |
int[] | $selectedAgentIds | |
bool | $includeSubfolders | |
String | $excluding | |
bool | $ignore | ignore files without license |
bool | $includeTreeId | Include tree id in the response array? |
Definition at line 298 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::getLicenseType | ( | $licenseId | ) |
Get type of license.
int | $licenseId | License to get type for |
Definition at line 755 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::insertBulkLicense | ( | $userId, | |
$groupId, | |||
$uploadTreeId, | |||
$licenseRemovals, | |||
$refText, | |||
$ignoreIrrelevant = true , |
|||
$delimiters = null , |
|||
$scanFindingsOnly = false |
|||
) |
int | $userId | |
int | $groupId | |
int | $uploadTreeId | |
bool[] | $licenseRemovals | |
string | $refText | |
bool | $ignoreIrrelevant | Ignore irrelevant files while scanning |
bool | $scanOnlyFindings | scan the files with license findings only |
string | $delimiters | Delimiters for bulk scan, null or "DEFAULT" for default values |
Definition at line 577 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::insertLicense | ( | $shortname, | |
$refText, | |||
$spdxId = null |
|||
) |
string | $shortname | |
string | $refText | |
string | $spdxId |
Definition at line 631 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::insertUploadLicense | ( | $newShortname, | |
$refText, | |||
$groupId, | |||
$userId | |||
) |
string | $newShortname | |
string | $refText |
Definition at line 647 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::isNewLicense | ( | $newShortname, | |
$groupId | |||
) |
string | $newShortname | |
int | $groupId |
Definition at line 617 of file LicenseDao.php.
Fossology\Lib\Dao\LicenseDao::updateCandidate | ( | $rf_pk, | |
$shortname, | |||
$fullname, | |||
$rfText, | |||
$url, | |||
$rfNotes, | |||
$lastmodified, | |||
$userIdmodified, | |||
$readyformerge, | |||
$riskLvl, | |||
$spdxId = null |
|||
) |
int | $rf_pk | |
string | $shortname | |
string | $fullname | |
string | $rfText,$rfNotes | |
string | $readyformerge | |
int | $riskLvl | |
string | $spdxId |
Definition at line 675 of file LicenseDao.php.