FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager, UploadDao $uploadDao) | |
getHighlights ($uploadTreeId, $tableName="copyright", $agentId=array(0), $typeToHighlightTypeMap=array('statement'=> Highlight::COPYRIGHT, 'email'=> Highlight::EMAIL, 'url'=> Highlight::URL, 'author'=> Highlight::AUTHOR)) | |
saveDecision ($tableName, $pfileId, $userId, $clearingType, $description, $textFinding, $comment, $decision_pk=-1) | |
removeDecision ($tableName, $pfileId, $decisionId) | |
undoDecision ($tableName, $pfileId, $decisionId) | |
getAllEventEntriesForUpload ($uploadFk, $agentId, $scope=1) | |
getScannerEntries ($tableName, $uploadTreeTableName, $uploadId, $type, $extrawhere, $enabled='true') | |
getEditedEntries ($tableName, $uploadTreeTableName, $uploadId, $decisionType, $extrawhere="") | |
getAllEntriesReport ($tableName, $uploadId, $uploadTreeTableName, $type=null, $onlyCleared=false, $decisionType=null, $extrawhere=null, $groupId=null) | |
getAllEntries ($tableName, $uploadId, $uploadTreeTableName, $type=null, $onlyCleared=false, $decisionType=null, $extrawhere=null) | |
getDecisions ($tableName, $pfileId) | |
getDecisionsFromHash ($tableName, $hash, $upload=null, $uploadtreetable=null) | |
Get all the decisions based on hash. More... | |
updateTable ($item, $hash, $content, $userId, $cpTable, $action='', $scope=1) | |
getTableName ($type) | |
Get table name based on statement type. More... | |
getTotalCopyrights ($upload_pk, $item, $uploadTreeTableName, $agentId, $type, $activated=true) | |
Get total number of copyrights for a uploadtree. More... | |
getUserCopyrights ($upload_pk, $item, $uploadTreeTableName, $type, $activated=true, $offset=null, $limit=null) | |
get user copyright findings for a uploadtree More... | |
Private Member Functions | |
getAgentName ($table) | |
Get agent name based on table name. More... | |
Private Attributes | |
$dbManager | |
$uploadDao | |
$logger | |
Definition at line 18 of file CopyrightDao.php.
|
private |
Get agent name based on table name.
string | $table | Table name |
Definition at line 548 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getAllEntriesReport | ( | $tableName, | |
$uploadId, | |||
$uploadTreeTableName, | |||
$type = null , |
|||
$onlyCleared = false , |
|||
$decisionType = null , |
|||
$extrawhere = null , |
|||
$groupId = null |
|||
) |
$tableName | ||
$uploadId | ||
$uploadTreeTableName | ||
$type | ||
bool | $onlyCleared | |
$decisionType | ||
$extrawhere | ||
$groupId |
Definition at line 298 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getAllEventEntriesForUpload | ( | $uploadFk, | |
$agentId, | |||
$scope = 1 |
|||
) |
$uploadFk | ||
$agentId | ||
int | $scope |
Definition at line 168 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getDecisions | ( | $tableName, | |
$pfileId | |||
) |
Fossology\Lib\Dao\CopyrightDao::getDecisionsFromHash | ( | $tableName, | |
$hash, | |||
$upload = null , |
|||
$uploadtreetable = null |
|||
) |
Get all the decisions based on hash.
Get all the decisions which matches the given hash. If the upload is null, get decision from all uploads, otherwise get decisions only for the given upload.
string | $tableName | Decision table name |
string | $hash | Hash of the decision |
int | $upload | Upload id |
string | $uploadtreetable | Name of the upload tree table |
Definition at line 417 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getEditedEntries | ( | $tableName, | |
$uploadTreeTableName, | |||
$uploadId, | |||
$decisionType, | |||
$extrawhere = "" |
|||
) |
string | $tableName | |
string | $uploadTreeTableName | |
integer | $uploadId | |
integer | $decisionType | |
string | $extrawhere |
Definition at line 246 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getHighlights | ( | $uploadTreeId, | |
$tableName = "copyright" , |
|||
$agentId = array(0) , |
|||
$typeToHighlightTypeMap = array( 'statement' => Highlight::COPYRIGHT, 'email' => Highlight::EMAIL, 'url' => Highlight::URL, 'author' => Highlight::AUTHOR) |
|||
) |
int | $uploadTreeId | |
string | $tableName | |
array | $agentId | |
array | $typeToHighlightTypeMap |
Definition at line 42 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getScannerEntries | ( | $tableName, | |
$uploadTreeTableName, | |||
$uploadId, | |||
$type, | |||
$extrawhere, | |||
$enabled = 'true' |
|||
) |
$tableName | |
$uploadTreeTableName | |
$uploadId | |
$type | |
$extrawhere | |
$enabled |
Definition at line 191 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getTableName | ( | $type | ) |
Get table name based on statement type.
string | $type | Result type |
Definition at line 571 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getTotalCopyrights | ( | $upload_pk, | |
$item, | |||
$uploadTreeTableName, | |||
$agentId, | |||
$type, | |||
$activated = true |
|||
) |
Get total number of copyrights for a uploadtree.
int | $upload_pk | Upload id to get results from |
int | $item | Upload tree id of the item |
string | $uploadTreeTableName | Upload tree table to use |
string | $agentId | Id of the agent who loaded the results |
string | $type | Type of the statement (statement, url, email, author or ecc) |
boolean | $activated | True to get activated copyrights, else false |
Definition at line 614 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getUserCopyrights | ( | $upload_pk, | |
$item, | |||
$uploadTreeTableName, | |||
$type, | |||
$activated = true , |
|||
$offset = null , |
|||
$limit = null |
|||
) |
get user copyright findings for a uploadtree
int | $upload_pk | Upload id to get results from |
int | $item | Upload tree id of the item |
string | $uploadTreeTableName | Upload tree table to use |
string | $type | Type of the statement (statement, url, email, author or ecc) |
boolean | $activated | True to get activated copyrights, else false |
Definition at line 657 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::saveDecision | ( | $tableName, | |
$pfileId, | |||
$userId, | |||
$clearingType, | |||
$description, | |||
$textFinding, | |||
$comment, | |||
$decision_pk = -1 |
|||
) |
$tableName | ||
$pfileId | ||
$userId | ||
$clearingType | ||
$description | ||
$textFinding | ||
$comment | ||
int | $decision_pk |
Definition at line 103 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::updateTable | ( | $item, | |
$hash, | |||
$content, | |||
$userId, | |||
$cpTable, | |||
$action = '' , |
|||
$scope = 1 |
|||
) |
ItemTreeBounds | $item | |
string | $hash | |
string | $content | |
int | $userId | |
string | $cpTable |
Definition at line 448 of file CopyrightDao.php.