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:
parent
a200071aba
commit
4cc74949d2
|
|
@ -1,6 +1,6 @@
|
|||
{content:part:top}
|
||||
<!--Modul Begin-->
|
||||
<div class="module">
|
||||
<div class="module" id="{content:getModId:css}">
|
||||
{content:part:end}
|
||||
|
||||
{content:part:bottom}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ include_once("php_inc/modules/wind.inc.php"); /* Wind-Klasse */
|
|||
/* Representiert ein Modul */
|
||||
class Module{
|
||||
|
||||
var $modName; /* Modul-Id */
|
||||
var $sensId; /* Sensor-Id */
|
||||
var $connection; /* Connection - Instanz */
|
||||
var $parserInstance = NULL; /* Parser - Instanz */
|
||||
|
|
@ -26,6 +27,7 @@ class Module{
|
|||
|
||||
/* Klassenvariablen zuordnen */
|
||||
$this->sensId = $sensId;
|
||||
$this->modName = $modName;
|
||||
$this->connection = &$connection;
|
||||
$this->parserInstance = &$parser;
|
||||
|
||||
|
|
@ -90,5 +92,10 @@ class Module{
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue