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