FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Lib\Dao\CopyrightDao Class Reference
Collaboration diagram for Fossology\Lib\Dao\CopyrightDao:
Collaboration graph

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
 

Detailed Description

Definition at line 27 of file CopyrightDao.php.

Member Function Documentation

Fossology\Lib\Dao\CopyrightDao::getAllEntriesReport (   $tableName,
  $uploadId,
  $uploadTreeTableName,
  $type = null,
  $onlyCleared = false,
  $decisionType = null,
  $extrawhere = null,
  $groupId = null 
)
Parameters
$tableName
$uploadId
$uploadTreeTableName
$type
$onlyCleared
$decisionType
$extrawhere
Returns
array

Definition at line 276 of file CopyrightDao.php.

Fossology\Lib\Dao\CopyrightDao::getDecisions (   $tableName,
  $pfileId 
)
Parameters
$tableName
$pfileId
Returns
array

Definition at line 379 of file CopyrightDao.php.

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.

Parameters
string$tableNameDecision table name
string$hashHash of the decision
int$uploadUpload id
string$uploadtreetableName of the upload tree table
Returns
array

Definition at line 402 of file CopyrightDao.php.

Fossology\Lib\Dao\CopyrightDao::getEditedEntries (   $tableName,
  $uploadTreeTableName,
  $uploadId,
  $decisionType,
  $extrawhere = "" 
)
Parameters
string$tableName
string$uploadTreeTableName
integer$uploadId
integer$decisionType
string$extrawhere
Returns
array $result

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) 
)
Parameters
int$uploadTreeId
string$tableName
int$agentId
array$typeToHighlightTypeMap
Exceptions

Definition at line 55 of file CopyrightDao.php.

Fossology\Lib\Dao\CopyrightDao::getScannerEntries (   $tableName,
  $uploadTreeTableName,
  $uploadId,
  $type,
  $extrawhere 
)
Parameters
$tableName
$uploadTreeTableName
$uploadId
$type
$extrawhere
Returns
array $result

Definition at line 178 of file CopyrightDao.php.

Fossology\Lib\Dao\CopyrightDao::saveDecision (   $tableName,
  $pfileId,
  $userId,
  $clearingType,
  $description,
  $textFinding,
  $comment,
  $decision_pk = -1 
)
Parameters
$tableName
$pfileId
$userId
$clearingType
$description
$textFinding
$comment
int$decision_pk
Returns
int decision_pk of decision

Definition at line 115 of file CopyrightDao.php.

Fossology\Lib\Dao\CopyrightDao::updateTable (   $item,
  $hash,
  $content,
  $userId,
  $cpTable = 'copyright',
  $action = '' 
)
Parameters
ItemTreeBounds$item
string$hash
string$content
int$userId
string$cpTable

Definition at line 433 of file CopyrightDao.php.


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