_getParserInstance(); /* Parserinstanz holen */ $parser->parseContent($this->_getSetFilename($setName), &$this, NULL); /* Set Parsen */ $parser->printContent(); if ($this->connInstance != NULL){ $this->connInstance->closeConn(); } } /* Dateinamen eines Setz aus dessen Namen zusammenbauen */ function _getSetFilename($setName){ return "content/module_sets/set_".$setName.".html"; } /* Parser Instanzieren (wenn noch nicht ist) und zurückgeben */ function &_getParserInstance(){ if($this->parserInstance==NULL) $this->parserInstance = new Parser(); return $this->parserInstance; } function &_getConnInstance(){ if($connInstance == NULL){ $this->connInstance = new Connection(); } return $this->connInstance; } /* Ein Modul hinzufügen */ function addModule($modName){ $params = explode("_",$modName); /* Modulname und Sensorid trennen */ new Module($params[0], $params[1], $this->_getParserInstance(), $this->_getConnInstance()); } } ?>