28 public function __construct() {
29 $this->Name =
"agent_copyright";
30 $this->Title = _(
"Copyright/Email/URL/Author Analysis");
31 $this->AgentName =
"copyright";
33 parent::__construct();
42 return CheckARS($uploadId, $this->AgentName,
"copyright scanner",
"copyright_ars");
49 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
51 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
57 if ($jobQueueId != 0) {
62 if (!empty($unpackArgs)) {
63 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
65 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
77 foreach ($dependencies as $dependency) {
78 if ($dependency == $agentName) {
81 if (is_array($dependency) && $agentName == $dependency[
'name']) {
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
Create UI plugin for copyright agent.
isAgentIncluded($dependencies, $agentName)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
AgentHasResults($uploadId=0)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)