mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
162879454a
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@23 dd492736-c11a-0410-ad51-8c26713eaf7f
24 lines
554 B
PHP
24 lines
554 B
PHP
<?
|
|
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])
|
|
}
|
|
|
|
}
|
|
?>
|