mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
charts added to webfrontend
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@114 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?
|
||||
include_once("php_inc/parser.inc.php"); /* Parser */
|
||||
include_once("php_inc/chart.inc.php"); /* Chart */
|
||||
include_once("php_inc/modules/sensor.inc.php"); /* Sensor-Klasse */
|
||||
include_once("php_inc/modules/temp.inc.php"); /* Temp-Klasse */
|
||||
include_once("php_inc/modules/rain.inc.php"); /* Rain-Klasse */
|
||||
@@ -92,10 +93,18 @@ class Module{
|
||||
return $callObject->$funcName($content_split[1]); /* Methode ausführen (Wert holen) und zurückgeben */
|
||||
}
|
||||
|
||||
function addChartLink($chartName){
|
||||
return Chart::generateChartLink($chartName.'_'.$this->sensId);
|
||||
}
|
||||
|
||||
function getModId($type){
|
||||
if($type == "css")
|
||||
return $this->modName."_".$this->sensId;
|
||||
}
|
||||
|
||||
function addChart($chartName){
|
||||
Chart::insertChart($chartName);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user