1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00
Files
ancient-weatherstation/webstuff/frontend/php_inc/module.inc.php
T
losinshi 162879454a Working on Frontend
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@23 dd492736-c11a-0410-ad51-8c26713eaf7f
2006-08-16 08:58:06 +00:00

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])
}
}
?>