17 public function __construct()
19 $this->Name =
"agent_copyright";
20 $this->Title = _(
"Copyright/Email/URL/Author Analysis");
21 $this->AgentName =
"copyright";
23 parent::__construct();
32 return CheckARS($uploadId, $this->AgentName,
"copyright scanner",
"copyright_ars");
39 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
41 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
47 if ($jobQueueId != 0) {
52 if (!empty($unpackArgs)) {
53 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
55 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
67 foreach ($dependencies as $dependency) {
68 if ($dependency == $agentName) {
71 if (is_array($dependency) && $agentName == $dependency[
'name']) {
Create UI plugin for copyright agent.
AgentHasResults($uploadId=0)
isAgentIncluded($dependencies, $agentName)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)
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.