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:
@@ -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])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user