/** * Detects actions that need to be executed by the Settings page * * @todo find better way of accessing $_GET properties * @return string Message to be displayed */ private function executeTasks() { //Read from $_GET if (isset($_GET['exec_action'])) { $action = $_GET['exec_action']; } else { $action = null; } switch ($action) { case 'run_update': $this->coreManager->getTaskManager()->updateAuthors(); $msg = "Authors Updated"; break; case 'clear_authors': $this->coreManager->getTaskManager()->clearAuthors(); $msg = "Current Authors removed."; break; default: $msg = null; } return $msg; }