FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager, UploadDao $uploadDao) | |
getHighlights ($uploadTreeId, $tableName="copyright", $agentId=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) | |
getScannerEntries ($tableName, $uploadTreeTableName, $uploadId, $type, $extrawhere) | |
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='copyright', $action='') | |
Private Attributes | |
$dbManager | |
$uploadDao | |
$clearingDao | |
$logger | |
Definition at line 27 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 | |
$onlyCleared | |
$decisionType | |
$extrawhere |
Definition at line 276 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 402 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 225 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getHighlights | ( | $uploadTreeId, | |
$tableName = "copyright" , |
|||
$agentId = 0 , |
|||
$typeToHighlightTypeMap = array( 'statement' => Highlight::COPYRIGHT, 'email' => Highlight::EMAIL, 'url' => Highlight::URL, 'author' => Highlight::AUTHOR) |
|||
) |
int | $uploadTreeId | |
string | $tableName | |
int | $agentId | |
array | $typeToHighlightTypeMap |
Definition at line 55 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::getScannerEntries | ( | $tableName, | |
$uploadTreeTableName, | |||
$uploadId, | |||
$type, | |||
$extrawhere | |||
) |
$tableName | |
$uploadTreeTableName | |
$uploadId | |
$type | |
$extrawhere |
Definition at line 178 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 115 of file CopyrightDao.php.
Fossology\Lib\Dao\CopyrightDao::updateTable | ( | $item, | |
$hash, | |||
$content, | |||
$userId, | |||
$cpTable = 'copyright' , |
|||
$action = '' |
|||
) |
ItemTreeBounds | $item | |
string | $hash | |
string | $content | |
int | $userId | |
string | $cpTable |
Definition at line 433 of file CopyrightDao.php.