32 public function __construct()
34 $this->Name =
"agent_nomos";
36 "Nomos License Analysis, scanning for licenses using regular expressions");
37 $this->AgentName =
"nomos";
39 parent::__construct();
48 return CheckARS($uploadId, $this->AgentName,
"license scanner",
"nomos_ars");
55 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
57 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
63 if ($jobQueueId != 0) {
68 if (!empty($unpackArgs)) {
69 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
71 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
83 foreach ($dependencies as $dependency) {
84 if ($dependency == $agentName) {
87 if (is_array($dependency) && $agentName == $dependency[
'name']) {
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
AgentHasResults($uploadId=0)
isAgentIncluded($dependencies, $agentName)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)