Create UI plugin for copyright agent.
More...
|
| AgentHasResults ($uploadId=0) |
|
| AgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null) |
|
| execute () |
|
| postInstall () |
|
| preInstall () |
|
| unInstall () |
|
| getName () |
|
| __toString () |
|
|
| isAgentIncluded ($dependencies, $agentName) |
|
| doAgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null) |
|
| implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency, $request) |
|
|
| $copyrightDesc = "Performs file scanning to find text fragments that could be relevant to copyrights, emails, and URLs" |
|
|
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 |
|
Create UI plugin for copyright agent.
Definition at line 15 of file agent-copyright.php.
◆ AgentAdd()
CopyrightAgentPlugin::AgentAdd |
( |
|
$jobId, |
|
|
|
$uploadId, |
|
|
& |
$errorMsg, |
|
|
|
$dependencies = [] , |
|
|
|
$arguments = null , |
|
|
|
$request = null , |
|
|
|
$unpackArgs = 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) |
Request | null | $request | Symfony request |
string | $unpackArgs | Ununpack args from adj2nest |
- Returns
- int
- jqId Successfully queued
- 0 Not queued, latest version of agent has previously run successfully
- -1 Not queued, error, error string in $ErrorMsg
- See also
- \Fossology\Lib\Plugin\AgentPlugin::AgentAdd()
Reimplemented from Fossology\Lib\Plugin\AgentPlugin.
Definition at line 42 of file agent-copyright.php.
◆ AgentHasResults()
CopyrightAgentPlugin::AgentHasResults |
( |
|
$uploadId = 0 | ) |
|
◆ isAgentIncluded()
CopyrightAgentPlugin::isAgentIncluded |
( |
|
$dependencies, |
|
|
|
$agentName |
|
) |
| |
|
protected |
Check if agent already included in the dependency list
- Parameters
-
mixed | $dependencies | Array of job dependencies |
string | $agentName | Name of the agent to be checked for |
- Returns
- boolean true if agent already in dependency list else false
Definition at line 73 of file agent-copyright.php.
The documentation for this class was generated from the following file: