13 define(
"TITLE_agent_wget_agent",
"wget_agent");
21 public $Name =
"wget_agent";
22 public $Title = TITLE_agent_wget_agent;
23 public $Version =
"1.0";
24 public $Dependency = array();
26 public $AgentName =
"wget_agent";
34 if ($this->
State != PLUGIN_STATE_READY) {
39 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
77 function AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
79 $Dependencies[] =
"wget_agent";
80 return CommonAgentAdd($this, $job_pk, $upload_pk, $ErrorMsg, $Dependencies);
This is the Plugin class. All plugins should:
UI plugin for WGET_AGENT.
AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
Queue the wget agent.
AgentHasResults($upload_pk)
Check if the upload has results from this agent.
RegisterMenus()
While menus can be added to any time at or after the PostInitialize phase, this is the standard locat...
CommonAgentAdd($plugin, $job_pk, $upload_pk, &$ErrorMsg, $Dependencies, $jqargs="", $jq_cmd_args=NULL)
Queue an agent. This is a simple version of AgentAdd() that can be used by multiple plugins that only...
#define PLUGIN_DB_WRITE
Plugin requires write permission on DB.