23 public function __construct() {
24 $this->Name =
"agent_keyword";
25 $this->Title = _(
"Keyword Analysis");
26 $this->AgentName =
"keyword";
28 parent::__construct();
37 return CheckARS($uploadId, $this->AgentName,
"keyword scanner",
"keyword_ars");
45 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
47 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
53 if ($jobQueueId != 0) {
58 if (!empty($unpackArgs)) {
59 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
61 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
73 foreach ($dependencies as $dependency) {
74 if ($dependency == $agentName) {
77 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)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
isAgentIncluded($dependencies, $agentName)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)