/** * function processData * <pre> * Processes the data for this form. * </pre> * @return [void] */ function processData() { // save the value of the Foriegn Key(s) // $this->formValues[ 'groupType_id' ] = $this->groupType_id; /*[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(); //also need to add the user to be a group admin $permissionsGroupAdminManager = new RowManager_PermissionsGroupAdminManager(); $permissionsGroupAdminManager->setViewerID($this->viewer->getViewerID()); $permissionsGroupAdminManager->setGroupID($this->dataManager->getGroupID()); $permissionsGroupAdminManager->createNewEntry(); } else { $this->dataManager->updateDBTable(); } // retrieve the ID of the newly created/updated group $this->newGroupID = $this->dataManager->getID(); // echo "The ID of the newly created group is [".$this->newGroupID."]<br/>"; $this->newGroupTypeID = $this->dataManager->getGroupTypeID(); // echo "The groupType ID of the newly created group is [".$this->newGroupTypeID."]<br/>"; }