24 define(
"TITLE_agent_wget_agent",
"wget_agent");
32 public $Name =
"wget_agent";
33 public $Title = TITLE_agent_wget_agent;
34 public $Version =
"1.0";
35 public $Dependency = array();
37 public $AgentName =
"wget_agent";
45 if ($this->
State != PLUGIN_STATE_READY) {
50 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
88 function AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
90 $Dependencies[] =
"wget_agent";
91 return CommonAgentAdd($this, $job_pk, $upload_pk, $ErrorMsg, $Dependencies);
AgentHasResults($upload_pk)
Check if the upload has results from this agent.
UI plugin for WGET_AGENT.
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...
RegisterMenus()
While menus can be added to any time at or after the PostInitialize phase, this is the standard locat...
#define PLUGIN_DB_WRITE
Plugin requires write permission on DB.
This is the Plugin class. All plugins should:
AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
Queue the wget agent.