24 define(
"TITLE_AGENT_DEMOMOD", _(
"Demomod scanner"));
45 if ($this->
State != PLUGIN_STATE_READY) {
return (0);
47 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
63 return CheckARS($upload_pk, $this->AgentName,
"demonstration module scanner",
"demomod_ars");
85 function AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
87 $Dependencies[] =
"agent_adj2nest";
88 return CommonAgentAdd($this, $job_pk, $upload_pk, $ErrorMsg, $Dependencies);
$DBaccess
DB access required.
AgentAdd($job_pk, $upload_pk, &$ErrorMsg, $Dependencies)
Queue the demomod 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()
Register additional menus.
UI plugin for demomod (handle user requests)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
#define PLUGIN_DB_WRITE
Plugin requires write permission on DB.
This is the Plugin class. All plugins should:
$Dependency
Dependecy for plugin.
$AgentName
agent.agent_name
AgentHasResults($upload_pk)
Check if the upload has already been successfully scanned.