Definition at line 24 of file SpashtDao.php.
◆ __construct()
Fossology\Lib\Dao\SpashtDao::__construct |
( |
DbManager |
$dbManager, |
|
|
Logger |
$logger |
|
) |
| |
- Parameters
-
DbManager | $dbManager | |
Logger | $logger | |
Definition at line 33 of file SpashtDao.php.
◆ addComponentRevision()
Fossology\Lib\Dao\SpashtDao::addComponentRevision |
( |
|
$coordinate, |
|
|
|
$uploadID |
|
) |
| |
Add new entry into spasht Agent
- Parameters
-
Coordinate | $coordinate | Coordinates |
integer | $uploadID | Upload ID |
- Returns
- integer New id
Definition at line 46 of file SpashtDao.php.
◆ alterComponentRevision()
Fossology\Lib\Dao\SpashtDao::alterComponentRevision |
( |
|
$coordinate, |
|
|
|
$uploadID |
|
) |
| |
Update the component coordinates in DB
- Parameters
-
Coordinate | $coordinate | New coordinates |
integer | $uploadID | Upload to update |
- Returns
- integer Upload ID on success
Definition at line 73 of file SpashtDao.php.
◆ getComponent()
Fossology\Lib\Dao\SpashtDao::getComponent |
( |
|
$uploadID | ) |
|
Get available coordinate in spasht where uploadId is found.
- Parameters
-
integer | $uploadID | Upload to search |
- Returns
- Coordinate Coordinate, if found. NULL otherwise.
Definition at line 96 of file SpashtDao.php.
◆ getCoordinateFromCompId()
Fossology\Lib\Dao\SpashtDao::getCoordinateFromCompId |
( |
|
$uploadId | ) |
|
Get ClearlyDefined Coordinate if component id is a pURL.
Read component id from Database. If empty or is not a pURL, return NULL. Otherwise parse the pURL and create a Coordinate from it.
- Note
- pURL does not have type and provide, so they both get same value in coordinate.
- Parameters
-
integer | $uploadId | Upload to get Coordinate from. |
- Returns
- null|Coordinate Return null if not pURL, Coordinate otherwise.
Definition at line 197 of file SpashtDao.php.
◆ getSpashtArs()
Fossology\Lib\Dao\SpashtDao::getSpashtArs |
( |
|
$uploadID | ) |
|
Get Spasht ars status for Upload id @params integer $uploadId Upload to get information from
- Returns
- array Row from ARS table
Definition at line 117 of file SpashtDao.php.
◆ rowToCoordinate()
Fossology\Lib\Dao\SpashtDao::rowToCoordinate |
( |
|
$row | ) |
|
|
private |
◆ updateCopyright()
Fossology\Lib\Dao\SpashtDao::updateCopyright |
( |
|
$item, |
|
|
|
$hash, |
|
|
|
$content, |
|
|
|
$action = '' |
|
) |
| |
Perform updates on copyrights from ClearlyDefined
- Parameters
-
ItemTreeBounds | $item | Item |
string | $hash | Copyright hash |
string | $content | New copyright content |
string | $action | Actions ('delete'|'rollback'|nothing=>update) |
Definition at line 137 of file SpashtDao.php.
The documentation for this class was generated from the following file: