|
| | __construct (DbManager $dbManager, Logger $logger) |
| |
|
| arsTableExists ($agentName) |
| |
|
| createArsTable ($agentName) |
| |
|
| writeArsRecord ($agentName, $agentId, $uploadId, $arsId=0, $success=false, $status="") |
| |
|
| getCurrentAgentId ($agentName, $agentDesc="", $agentRev="") |
| |
| | agentARSList ($tableName, $uploadId, $limit=1, $agentId=0, $agentSuccess=true) |
| | The purpose of this function is to return an array of _ars records for an agent so that the latest agent_pk(s) can be determined. This is for _ars tables only, for example, nomos_ars and bucket_ars. The _ars tables have a standard format but the specific agent ars table may have additional fields. More...
|
| |
| | getRunningAgentIds ($uploadId, $agentName) |
| | Returns the list of running or failed agent_pk s. Before latest successful run. More...
|
| |
|
| getLatestAgentResultForUpload ($uploadId, $agentNames) |
| |
| | getCurrentAgentRef ($agentName) |
| |
| | getSuccessfulAgentRuns ($agentName, $uploadId) |
| |
| | getSuccessfulAgentEntries ($scannerName, $uploadId) |
| |
| | renewCurrentAgent ($agentName) |
| |
| | getAgentName ($agentId) |
| |
| | getAgentRev ($agentId) |
| |
|
|
const | ARS_TABLE_SUFFIX = "_ars" |
| |
Definition at line 31 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::__construct |
( |
DbManager |
$dbManager, |
|
|
Logger |
$logger |
|
) |
| |
- Parameters
-
| DbManager | $dbManager | |
| Logger | $logger | |
Definition at line 42 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::agentARSList |
( |
|
$tableName, |
|
|
|
$uploadId, |
|
|
|
$limit = 1, |
|
|
|
$agentId = 0, |
|
|
|
$agentSuccess = true |
|
) |
| |
The purpose of this function is to return an array of _ars records for an agent so that the latest agent_pk(s) can be determined. This is for _ars tables only, for example, nomos_ars and bucket_ars. The _ars tables have a standard format but the specific agent ars table may have additional fields.
- Parameters
-
| string | $tableName | - name of the ars table (e.g. nomos_ars) |
| int | $uploadId | |
| int | $limit | - limit number of rows returned. 0=No limit, default=1 |
| int | $agentId | - ARS table agent_fk, optional |
- Returns
- mixed assoc array of _ars records. or FALSE on error, or no rows
Definition at line 135 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::createAgentRef |
( |
|
$row | ) |
|
|
private |
| Fossology\Lib\Dao\AgentDao::getAgentName |
( |
|
$agentId | ) |
|
| Fossology\Lib\Dao\AgentDao::getAgentRev |
( |
|
$agentId | ) |
|
| Fossology\Lib\Dao\AgentDao::getArsTableName |
( |
|
$agentName | ) |
|
|
private |
| Fossology\Lib\Dao\AgentDao::getCurrentAgentRef |
( |
|
$agentName | ) |
|
| Fossology\Lib\Dao\AgentDao::getRunningAgentIds |
( |
|
$uploadId, |
|
|
|
$agentName |
|
) |
| |
Returns the list of running or failed agent_pk s. Before latest successful run.
- Parameters
-
- Returns
- int[] - list of running agent pks
Definition at line 175 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::getSuccessfulAgentEntries |
( |
|
$scannerName, |
|
|
|
$uploadId |
|
) |
| |
- Parameters
-
| string | $scannerName | |
| int | $uploadId | |
- Returns
- array[] with keys agent_id,agent_rev,agent_name
Definition at line 239 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::getSuccessfulAgentRuns |
( |
|
$agentName, |
|
|
|
$uploadId |
|
) |
| |
- Parameters
-
| string | $agentName | |
| int | $uploadId | |
- Returns
- AgentRef[]
Definition at line 218 of file AgentDao.php.
| Fossology\Lib\Dao\AgentDao::renewCurrentAgent |
( |
|
$agentName | ) |
|
The documentation for this class was generated from the following file: