Nearly nothing done, good night.

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@40 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi 2006-08-22 23:19:03 +00:00
parent a200071aba
commit 4cc74949d2
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{content:part:top} {content:part:top}
<!--Modul Begin--> <!--Modul Begin-->
<div class="module"> <div class="module" id="{content:getModId:css}">
{content:part:end} {content:part:end}
{content:part:bottom} {content:part:bottom}

View File

@ -10,6 +10,7 @@ include_once("php_inc/modules/wind.inc.php"); /* Wind-Klasse */
/* Representiert ein Modul */ /* Representiert ein Modul */
class Module{ class Module{
var $modName; /* Modul-Id */
var $sensId; /* Sensor-Id */ var $sensId; /* Sensor-Id */
var $connection; /* Connection - Instanz */ var $connection; /* Connection - Instanz */
var $parserInstance = NULL; /* Parser - Instanz */ var $parserInstance = NULL; /* Parser - Instanz */
@ -25,8 +26,9 @@ class Module{
function Module($modName, $sensId, &$parser, &$connection){ function Module($modName, $sensId, &$parser, &$connection){
/* Klassenvariablen zuordnen */ /* Klassenvariablen zuordnen */
$this->sensId = $sensId; $this->sensId = $sensId;
$this->connection = &$connection; $this->modName = $modName;
$this->connection = &$connection;
$this->parserInstance = &$parser; $this->parserInstance = &$parser;
$parser->parseContent($this->_getModuleFilename("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */ $parser->parseContent($this->_getModuleFilename("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */
@ -90,5 +92,10 @@ class Module{
return $callObject->$funcName($content_split[1]); /* Methode ausführen (Wert holen) und zurückgeben */ return $callObject->$funcName($content_split[1]); /* Methode ausführen (Wert holen) und zurückgeben */
} }
function getModId($type){
if($type == "css")
return $this->modName."_".$this->sensId;
}
} }
?> ?>