FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ResoAgentPlugin Class Reference

Create UI plugin for Reso agent. More...

Inheritance diagram for ResoAgentPlugin:
Inheritance graph
Collaboration diagram for ResoAgentPlugin:
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

 $resoDesc = "REUSE.Software agent marks licensed files with a license found in the .license files (outside of the licensed files), Note: forces *Ojo License Analysis*"
 

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

Create UI plugin for Reso agent.

Definition at line 15 of file ResoAgentPlugin.php.

Member Function Documentation

◆ AgentAdd()

ResoAgentPlugin::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 42 of file ResoAgentPlugin.php.

◆ AgentHasResults()

ResoAgentPlugin::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
See also
Fossology::Lib::Plugin::AgentPlugin::AgentHasResults()

Reimplemented from Fossology\Lib\Plugin\AgentPlugin.

Definition at line 33 of file ResoAgentPlugin.php.

◆ isAgentIncluded()

ResoAgentPlugin::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 75 of file ResoAgentPlugin.php.


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