|
| execute () |
|
| postInstall () |
|
| preInstall () |
|
| unInstall () |
|
| getName () |
|
| AgentHasResults ($uploadId=0) |
|
| AgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null) |
|
| __toString () |
|
|
const | PRE_JOB_QUEUE = 'preJq' |
|
| $AgentName |
|
| $Name = "agent_abstract" |
|
| $Dependency = array() |
|
| $Title = 'how to show checkbox' |
|
| $PluginLevel = 10 |
|
| $State = PLUGIN_STATE_READY |
|
| $DBaccess = PLUGIN_DB_WRITE |
|
Definition at line 10 of file AgentPlugin.php.
◆ AgentAdd()
Fossology\Lib\Plugin\AgentPlugin::AgentAdd |
( |
|
$jobId, |
|
|
|
$uploadId, |
|
|
& |
$errorMsg, |
|
|
|
$dependencies = array() , |
|
|
|
$arguments = null |
|
) |
| |
- Parameters
-
int | $jobId | |
int | $uploadId | |
| &string | $errorMsg - error message on failure |
array | $dependencies | - array of plugin names representing dependencies. |
mixed | $arguments | (ignored if not a string) |
- Returns
- int
- jqId Successfully queued
- 0 Not queued, latest version of agent has previously run successfully
- -1 Not queued, error, error string in $ErrorMsg
Reimplemented in Fossology\DeciderJob\UI\DeciderJobAgentPlugin, MonkBulkAgentPlugin, UnpackAgentPlugin, SpashtAgentPlugin, ResoAgentPlugin, Fossology\Ojo\Ui\OjosAgentPlugin, NomosAgentPlugin, MonkAgentPlugin, KeywordAgentPlugin, EccAgentPlugin, CopyrightAgentPlugin, and BucketAgentPlugin.
Definition at line 72 of file AgentPlugin.php.
◆ AgentHasResults()
Fossology\Lib\Plugin\AgentPlugin::AgentHasResults |
( |
|
$uploadId = 0 | ) |
|
- Parameters
-
- Returns
- int
- 0 = no or this agent can be re run multiple times
- 1 = yes, from latest agent version
- 2 = yes, from older agent version
Reimplemented in UnpackAgentPlugin, SpashtAgentPlugin, softwareHeritageAgentPlugin, ScanossAgentPlugin, Fossology\Scancode\Ui\ScancodesAgentPlugin, ResoAgentPlugin, PkgAgentPlugin, Fossology\Ojo\Ui\OjosAgentPlugin, NomosAgentPlugin, Fossology\Ninka\Ui\NinkaAgentPlugin, MonkAgentPlugin, MimetypeAgentPlugin, KeywordAgentPlugin, IpraAgentPlugin, EccAgentPlugin, CopyrightAgentPlugin, BucketAgentPlugin, and Adj2nestAgentPlugin.
Definition at line 56 of file AgentPlugin.php.
◆ doAgentAdd()
Fossology\Lib\Plugin\AgentPlugin::doAgentAdd |
( |
|
$jobId, |
|
|
|
$uploadId, |
|
|
& |
$errorMsg, |
|
|
|
$dependencies, |
|
|
|
$jqargs = "" , |
|
|
|
$jq_cmd_args = null |
|
) |
| |
|
protected |
- Parameters
-
int | $jobId | |
int | $uploadId | |
string | $errorMsg | - error message on failure |
array | $dependencies | |
string | null | $jqargs | (optional) jobqueue.jq_args |
| $jq_cmd_args | |
- Returns
- jqId Successfully queued
- 0 Not queued, latest version of agent has previously run successfully
- -1 Not queued, error, error string in $ErrorMsg
Definition at line 100 of file AgentPlugin.php.
◆ getName()
Fossology\Lib\Plugin\AgentPlugin::getName |
( |
| ) |
|
◆ implicitAgentAdd()
Fossology\Lib\Plugin\AgentPlugin::implicitAgentAdd |
( |
|
$jobId, |
|
|
|
$uploadId, |
|
|
& |
$errorMsg, |
|
|
|
$dependency |
|
) |
| |
|
protected |
- Parameters
-
int | $jobId | |
int | $uploadId | |
| &string | $errorMsg |
mixed | $dependency | |
- Returns
- int
Definition at line 134 of file AgentPlugin.php.
The documentation for this class was generated from the following file: