/**
  * function processData
  * <pre>
  * Processes the data for this form.
  * </pre>
  * @return [void]
  */
 function processData()
 {
     // save the value of the Foriegn Key(s)
     $this->formValues['accountgroup_id'] = $this->accountgroup_id;
     /*[RAD_ADMINBOX_FOREIGNKEY]*/
     // store values in table manager object.
     if (!$this->dataManager->isLoaded()) {
         $this->dataManager->createNewEntry();
     }
     $this->dataManager->loadFromArray($this->formValues);
     $accessGroupManager = new RowManager_AccessGroupManager();
     $allAccessGroupID = $accessGroupManager->getAllAccessGroupID();
     // don't need this for CIM stuff - RM
     // $hrdbGroupID = $accessGroupManager->getHRDBAccessGroupID();
     // echo 'hrdbGroupID['.$hrdbGroupID.']<br/>';
     //$this->dataManager->setAccountGroup($allAccessGroupID);
     $viewerAccessGroup = new RowManager_ViewerAccessGroupManager();
     //$hrdbGroupID = 34;
     // $defaultGroups = array($allAccessGroupID, $hrdbGroupID);
     $defaultGroups = array($allAccessGroupID);
     for ($i = 0; $i < count($defaultGroups); $i++) {
         //load values
         $values = array();
         //print($this->dataManager->getID() . "<br>");
         //print($allAccessGroupID);
         $values['viewer_id'] = $this->dataManager->getID();
         //$values[ 'accessgroup_id' ] = $allAccessGroupID;
         $values['accessgroup_id'] = $defaultGroups[$i];
         $viewerAccessGroup->loadFromArray($values);
         //var_export($viewerAccessGroup);
         // update DB Table
         $viewerAccessGroup->createNewEntry();
     }
     // Make sure password is set using the dataManager's routines
     // (for encryption)
     $pword = $this->formValues['viewer_passWord'];
     $this->dataManager->setPassWord($pword);
     $this->dataManager->updateDBTable();
     // now make sure all the systemAccessObjects have been updated
     $moduleManager = new RowManager_siteModuleManager();
     $moduleManager->processSystemAccessNewViewer($this->dataManager->getID());
 }