18 private $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*";
20 public function __construct()
22 $this->Name =
"agent_reso";
23 $this->Title = (
"REUSE.Software Analysis <img src=\"images/info_16.png\" data-toggle=\"tooltip\" title=\"".$this->resoDesc.
"\" class=\"info-bullet\"/>");
24 $this->AgentName =
"reso";
26 parent::__construct();
35 return CheckARS($uploadId, $this->AgentName,
"reso agent",
"reso_ars");
42 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[],
43 $arguments=
null, $request=
null, $unpackArgs=
null)
45 if ($request !=
null) {
46 $copyrightAgentScheduled = intval($request->get(
"Check_agent_copyright",
49 $copyrightAgentScheduled =
GetParm(
"Check_agent_copyright",
52 $dependencies[] =
"agent_ojo";
53 if ($copyrightAgentScheduled) {
54 $dependencies[] =
"agent_copyright";
61 if ($jobQueueId != 0) {
65 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies,
66 $uploadId,
null, $request);
77 foreach ($dependencies as $dependency) {
78 if ($dependency == $agentName) {
81 if (is_array($dependency) && $agentName == $dependency[
'name']) {
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null)
Create UI plugin for Reso agent.
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null)
AgentHasResults($uploadId=0)
isAgentIncluded($dependencies, $agentName)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.