modId = $value; } public function getId() { return $this->modId; } public function setAction($value) { $this->modAction = $value; } private function getAction() { return $this->modAction; } private function setContent($value) { $this->modContent = $value; } public function getContent() { return $this->modContent; } public function setSiteId($value) { $this->modSiteId = $value; } private function getSiteId() { return $this->modSiteId; } private function setSubNav($value) { $this->modSubNavigation = $value; } public function getSubNav() { return $this->modSubNavigation; } public function initModule() { $obj = data::tep_db_query("SELECT modules_id,name,active FROM ".TABLE_MODULES." WHERE modules_id = ".$this->modId); if (mysql_num_rows($obj)) { $row = mysql_fetch_array($obj); if ($row['active']) { if (file_exists('modules/'.$row['name'].'.php')) { require_once('modules/'.$row['name'].'.php'); $modul = 'init_'.$row['name']; $object = new $row['name'](); $object->setAction($this->modAction); $object->setSiteId($this->modSiteId); $object->$modul(); $this->setContent($object->getOutput()); $this->setSubNav($object->getSubOutput()); } else { $this->setContent('Moduldatei ist nicht vorhanden'); } } else { // $this->setContent("Dieses Modul ist vorhanden aber NICHT aktiv"); } } else { // $this->setContent("Dieses Modul ist nicht vorhanden"); } } } ?>