/**
  * 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()) {
         $this->dataManager->createNewEntry();
         //Assign the person to a campus if this is a new entry.
         $personID = $this->dataManager->getPersonID();
         $assignmentManager = new RowManager_AssignmentsManager();
         $assignmentManager->setPersonID($personID);
         $assignmentManager->setCampusID($this->campus_id);
         $assignmentManager->createNewEntry();
     } else {
         $this->dataManager->updateDBTable();
     }
 }
 protected function assignCampus($personID)
 {
     if (isset($this->campus_id) && $this->campus_id != '') {
         $campusAssign = new RowManager_AssignmentsManager();
         $campusAssign->setPersonID($personID);
         $campusAssign->setCampusID($this->campus_id);
         $updateValues = array();
         $updateValues['person_id'] = $personID;
         $updateValues['campus_id'] = $this->campus_id;
         // Store values in AssignmentsManager object
         $campusAssign->loadFromArray($updateValues);
         //              echo "<pre>".print_r($updateValues ,true)."</pre>";
         // store new information
         $campusAssign->createNewEntry();
     }
 }
 /**
  * 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();
     }
 }