FOSSology  4.4.0
Open Source License Compliance by Open Source Software
MonkAgentPlugin Class Reference
Inheritance diagram for MonkAgentPlugin:
Inheritance graph
Collaboration diagram for MonkAgentPlugin:
Collaboration graph

Public Member Functions

 AgentHasResults ($uploadId=0)
 
 AgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null)
 
- Public Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin
 execute ()
 
 postInstall ()
 
 preInstall ()
 
 unInstall ()
 
 getName ()
 
 __toString ()
 

Protected Member Functions

 isAgentIncluded ($dependencies, $agentName)
 
- Protected Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin
 doAgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null)
 
 implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency, $request)
 

Private Attributes

 $monkDesc = "Scan files for licenses using text comparison method"
 

Additional Inherited Members

- Public Attributes inherited from Fossology\Lib\Plugin\AgentPlugin
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
 

Detailed Description

Definition at line 11 of file agent-monk.php.

Member Function Documentation

◆ AgentAdd()

MonkAgentPlugin::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$requestSymfony request
string$unpackArgsUnunpack 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 34 of file agent-monk.php.

◆ AgentHasResults()

MonkAgentPlugin::AgentHasResults (   $uploadId = 0)
Parameters
int$uploadId
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 from Fossology\Lib\Plugin\AgentPlugin.

Definition at line 25 of file agent-monk.php.

◆ isAgentIncluded()

MonkAgentPlugin::isAgentIncluded (   $dependencies,
  $agentName 
)
protected

Check if agent already included in the dependency list

Parameters
mixed$dependenciesArray of job dependencies
string$agentNameName of the agent to be checked for
Returns
boolean true if agent already in dependency list else false

Definition at line 65 of file agent-monk.php.


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