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

Working on Frontend

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@23 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-08-16 08:58:06 +00:00
parent 89c7264674
commit 162879454a
2 changed files with 16 additions and 5 deletions
+11
View File
@@ -1,11 +1,22 @@
<?
include_once("php_inc/parser.inc.php");
class Module{
var $parserInstance = NULL; /* Parser - Instanz */
var $connectionInstance = NULL; /* Connection - Instanz */
function Module($modName, $sensId, $parser, $connection){
$parser->parseContent($this->_getModuleFilename($modName));
}
function _getModuleFilename($modName){
return "/content/modules/mod_".$modName.".html";
}
function fill($contentId){
$content_split = explode("_", $contentId);
return $this->"get".$content_split[0]($content_split[1])
}
}