32 public function __construct() {
33 $this->Name =
"agent_pkgagent";
34 $this->Title = _(
"Package Analysis (Parse package headers)");
35 $this->AgentName =
"pkgagent";
37 parent::__construct();
46 return CheckARS($uploadId, $this->AgentName,
"package meta data scanner",
"pkgagent_ars");
55 $dbManager = $GLOBALS[
'container']->get(
'db.manager');
56 $latestPkgAgent = $dbManager->getSingleRow(
"SELECT agent_enabled FROM agent WHERE agent_name=$1 ORDER BY agent_ts LIMIT 1",array(
'pkgagent'));
57 if (isset($latestPkgAgent) && !$dbManager->booleanFromDb($latestPkgAgent[
'agent_enabled']))
61 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
AgentHasResults($uploadId=0)