14 include_once(dirname(__DIR__) .
"/agent/version.php");
18 public function __construct()
20 $this->Name =
"spasht";
21 $this->Title = _(
"Spasht Analysis");
22 $this->AgentName =
"spasht";
24 parent::__construct();
46 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
48 $dependencies[] =
"agent_adj2nest";
51 if ($jobQueueId != 0) {
55 $args = is_array($arguments) ?
'' : $arguments;
56 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies, $uploadId, $args);
66 return CheckARS($uploadId, $this->AgentName,
"spasht agent",
"spasht_ars");
Contains the constants and helpers for authentication of user.
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
AgentHasResults($uploadId=0)
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.