mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
xml output added
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@233 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -72,6 +72,15 @@ class Chart{
|
||||
return Chart::_getChartImgTag($chartName);
|
||||
}
|
||||
|
||||
function insertChartLink($chartName){
|
||||
if($chartName == "auto"){
|
||||
$chartName = $_REQUEST['chartName'];
|
||||
}
|
||||
$chartArray = Config::getChartArray($chartName);
|
||||
|
||||
return Chart::_getChartImgLink($chartArray[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -53,5 +53,10 @@ class Config{
|
||||
global $average_interval;
|
||||
return $average_interval;
|
||||
}
|
||||
|
||||
function getNotStandardPages(){
|
||||
global $notStandard;
|
||||
return $notStandard;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -42,9 +42,11 @@ class Module{
|
||||
$this->parserInstance = &$parser;
|
||||
$this->table = $this->_getTableName();
|
||||
|
||||
$parser->parseContent($this->_getModuleFilename("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */
|
||||
if (ModuleSet::isStandardPage($_REQUEST['setType']))
|
||||
$parser->parseContent($this->_getModuleFilename("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */
|
||||
$parser->parseContent($this->_getModuleFilename($modName), & $this, NULL); /* Modul Parsen */
|
||||
$parser->parseContent($this->_getModuleFilename("frame"), & $this, "bottom"); /* unteren Modulrahmen Parsen */
|
||||
if (ModuleSet::isStandardPage($_REQUEST['setType']))
|
||||
$parser->parseContent($this->_getModuleFilename("frame"), & $this, "bottom"); /* unteren Modulrahmen Parsen */
|
||||
}
|
||||
|
||||
function _getTableName(){
|
||||
@@ -126,7 +128,11 @@ class Module{
|
||||
}
|
||||
|
||||
function addChart($chartName){
|
||||
Chart::insertChart($chartName);
|
||||
return Chart::insertChart($chartName);
|
||||
}
|
||||
|
||||
function addChartImgLink($chartName){
|
||||
return Chart::insertChartLink($chartName.'_'.$this->sensId);
|
||||
}
|
||||
|
||||
function addSetLink($setName){
|
||||
|
||||
@@ -109,5 +109,9 @@ class ModuleSet{
|
||||
|
||||
return $buff;
|
||||
}
|
||||
|
||||
function isStandardPage($set_type){
|
||||
return !in_array($set_type, Config::getNotStandardPages());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user