public function processInput()
 {
     if (isset($_GET['push'])) {
         $this->model->pushSettings();
         router::redirectMessage('index.php?view=device', 'Push Successful');
     }
 }
 public function processInput()
 {
     if (isset($_GET['hc'])) {
         $this->model->updateHomeCopy();
         router::redirectMessage('index.php?view=settings', 'Home Page Copy Updated');
     }
     if (isset($_GET['us'])) {
         $this->model->updateSettings();
         router::redirectMessage('index.php?view=settings', 'Settings Updated');
     }
     if (isset($_GET['cd'])) {
         $this->model->clearData();
         router::redirectMessage('index.php?view=settings', 'Data Cleared');
     }
     if (isset($_GET['edv'])) {
         $this->model->updateDeviceSettingsDefs();
         router::redirectMessage('index.php?view=settings', 'Device Settings Definitions Updated');
     }
 }
 public function processInput()
 {
     if (isset($_GET['un'])) {
         $this->model->updateNote();
         router::redirectMessage('index.php?view=enterdata', 'Note Updated');
     }
     if (isset($_GET['reset'])) {
         unset($_SESSION['csv']);
         router::redirectMessage('index.php?view=enterdata', 'Reset, no changes');
     }
     if (isset($_GET['ud'])) {
         $result = $this->model->updateData();
         if (isset($result['upload'])) {
             router::redirectMessage('index.php?view=enterdata', 'Preview the Data Below and the Submit');
             return true;
         }
         if ($result['success']) {
             router::redirectMessage('index.php?view=enterdata', 'Data Updated');
         } else {
             router::redirectMessage('index.php?view=enterdata', $result['error_message']);
         }
     }
 }