1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00

code cleaned

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@201 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-12-11 09:50:03 +00:00
parent ff877ec580
commit 4eb5123888
42 changed files with 191 additions and 191 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ class ModuleSet{
return $path."content/module_sets/set_".$setName.".html";
}
/* Parser Instanzieren (wenn noch nicht ist) und zurückgeben */
/* Parser Instanzieren (wenn noch nicht ist) und zurueckgeben */
function &_getParserInstance(){
if($this->parserInstance==NULL)
$this->parserInstance = new Parser();
@@ -57,13 +57,13 @@ class ModuleSet{
return $this->connInstance;
}
/* Ein Modul hinzufügen */
/* Ein Modul hinzufuegen */
function addModule($modName){
$params = explode("_",$modName); /* Modulname und Sensorid trennen */
new Module($params[0], $params[1], $this->_getParserInstance(), $this->_getConnInstance());
}
/* Ein Report hinzufügen */
/* Ein Report hinzufuegen */
function addReport($rptName){
new Report($rptName, $this->_getParserInstance(), $this->_getConnInstance());
}