/** * function processData * <pre> * Processes the data for this form. * </pre> * @return [void] */ function processData() { // save the value of the Foriegn Key(s) /*[RAD_ADMINBOX_FOREIGNKEY]*/ // store values in table manager object. $this->dataManager->loadFromArray($this->formValues); // now update the DB with the values if (!$this->dataManager->isLoaded()) { if ($this->campus_id != '') { $this->dataManager->createNewEntry(); $assignManager = new RowManager_AssignmentsManager(); // $assignManager->setCampusID($this->campus_id); $values = array(); $values['person_id'] = $this->dataManager->getID(); $values['campus_id'] = $this->campus_id; $values['assignmentstatus_id'] = '6'; $assignManager->loadFromArray($values); if (!$assignManager->isLoaded()) { $assignManager->createNewEntry(); // associate person with the campus the viewer is viewing } } } else { $this->dataManager->updateDBTable(); } }