Пример #1
0
 /**
  * function processData
  * <pre>
  * Processes the data for this form.
  * </pre>
  * @return [void]
  */
 function processData()
 {
     // if this is a delete operation then
     if ($this->opType == 'D') {
         if ($this->shouldDelete) {
             $this->dataManager->deleteEntry();
             // now make sure all the systemAccessObjects have been updated
             $moduleManager = new RowManager_siteModuleManager();
             $moduleManager->processSystemAccessRemoveAdmin($this->formValues['account']);
         }
     } else {
         // else
         /*[RAD_ADMINBOX_FOREIGNKEY]*/
         // store values in table manager object.
         $this->formValues['viewer_id'] = $this->formValues['account'];
         $this->dataManager->loadFromArray($this->formValues);
         if (!$this->dataManager->isLoaded()) {
             $this->dataManager->createNewEntry();
         } else {
             $this->dataManager->updateDBTable();
         }
         // now make sure all the systemAccessObjects have been updated
         $moduleManager = new RowManager_siteModuleManager();
         $moduleManager->processSystemAccessNewAdmin($this->formValues['viewer_id']);
     }
     // end if
     // now Clear out dataManager & FormValues
     $this->dataManager->clearValues();
     $this->formValues = $this->dataManager->getArrayOfValues();
     // on a successful update return accountadminaccess_id to ''
     $this->accountadminaccess_id = '';
 }