public function post_id_handler() { $dbc = $this->connection; $settings = $this->config->get('PLUGIN_SETTINGS'); $dbc->selectDB($settings['TimesheetDatabase']); $model = new TimesheetEmployeesModel($dbc); $model->timesheetEmployeeID($this->id); $model->firstName(FormLib::get('firstName')); $model->lastName(FormLib::get('lastName')); $model->username(FormLib::get('username')); $model->posMemberID(FormLib::get('posMemberID')); $model->payrollProviderID(FormLib::get('payrollProviderID')); $model->timeclockToken(FormLib::get('timeclockToken')); $model->timesheetDepartmentID(FormLib::get('timesheetDepartmentID')); $model->primaryShiftID(FormLib::get('primaryShiftID')); $model->wage(FormLib::get('wage')); $model->hireDate(FormLib::get('hireDate')); $model->active(FormLib::get('active')); $model->save(); header('Location: ?id=' . $this->id); return false; }