dbPluginStatus = new dbPluginStatus($config); $this->dbChannelStatus = new dbChannelStatus($config); $this->dbNotifications = new dbNotifications($config); $this->dbInformation = new dbInformation($config); // Detect registration status $this->GOsaRegistration = new GOsaRegistration($config); $this->registered = GOsaRegistration::isRegistered($config); } function execute() { if(!$this->registered){ return($this->GOsaRegistration->execute()); } $smarty = get_smarty(); $smarty->assign('dbPluginStatus', $this->dbPluginStatus->execute()); $smarty->assign('dbChannelStatus', $this->dbChannelStatus->execute()); $smarty->assign('dbNotifications', $this->dbNotifications->execute()); $smarty->assign('dbInformation', $this->dbInformation->execute()); return($smarty->fetch(get_template_path('dashBoard.tpl', TRUE))); } function check() { $messages = plugin::check(); $messages = array_merge($this->dbPluginStatus->check()); $messages = array_merge($this->dbChannelStatus->check()); $messages = array_merge($this->dbNotifications->check()); $messages = array_merge($this->dbInformation->check()); return($messages); } function save_object() { plugin::save_object(); if(!$this->registered) $this->GOsaRegistration->save_object(); $this->dbPluginStatus->save_object(); $this->dbChannelStatus->save_object(); $this->dbNotifications->save_object(); $this->dbInformation->save_object(); } function save() { plugin::save(); $this->dbPluginStatus->save(); $this->dbChannelStatus->save(); $this->dbNotifications->save(); $this->dbInformation->save(); } function remove_from_parent() { plugin::remove_from_parent(); $this->dbPluginStatus->remove_from_parent(); $this->dbChannelStatus->remove_from_parent(); $this->dbNotifications->remove_from_parent(); $this->dbInformation->remove_from_parent(); } } ?>