/**
  * function processData
  * <pre>
  * Processes the data for this form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate processData() call
  * on a sub-page.
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function processData()
 {
     if ($this->active_subPage == null) {
         // save the value of the Primary Key(s)
         $this->formValues['staffschedule_id'] = $this->personal_form_id;
         $this->formValues['staffschedule_approvedby'] = $this->getPersonIDfromViewerID();
         $this->formValues['staffschedule_approvalnotes'] = trim($this->formValues['staffschedule_approvalnotes']);
         /*[RAD_ADMINBOX_FOREIGNKEY]*/
         // Only set the "last modified" time if approval is changed
         if ($this->formValues['staffschedule_approved'] == 'on') {
             $this->formValues['staffschedule_approved'] = 1;
             if ($this->is_form_approved == false) {
                 $this->formValues['staffschedule_lastmodifiedbydirector'] = strftime("%Y-%m-%d %H:%M:%S", time());
                 // == CURRENT_TIME
                 $this->is_form_approved = true;
             }
         } else {
             $this->formValues['staffschedule_approved'] = 0;
             if ($this->is_form_approved == true) {
                 $this->formValues['staffschedule_lastmodifiedbydirector'] = strftime("%Y-%m-%d %H:%M:%S", time());
                 // == CURRENT_TIME
                 $this->is_form_approved = false;
             }
         }
         // 		     echo 'form values = <pre>'.print_r($this->formValues,true).'</pre>';
         $form_instance = new RowManager_StaffScheduleManager($this->personal_form_id);
         //        $registration->setSortOrder( $sortBy );
         // 	        $form_instance->setFormID($this->form_id);
         // 	        $form_instance->setPersonID($this->person_id);
         $form_instance->loadFromArray($this->formValues);
         $form_instance->updateDBTable();
     } else {
         $this->active_subPage->processData();
     }
 }
 /**
  * function processData
  * <pre>
  * Processes the data for this form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate processData() call
  * on a sub-page.
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function processData()
 {
     $personal_form_id = $this->active_subPage->processData();
     if ($personal_form_id != '') {
         $this->personal_form_id = $personal_form_id;
         //NOTE: may replace a non-empty value..
     }
     // Flag the requirement for the director to be notified of this change
     $scheduleFormManager = new RowManager_StaffScheduleManager($this->personal_form_id);
     $scheduleFormManager->setToNotify(true);
     $scheduleFormManager->updateDBTable();
     // Compose Notification E-mail
     //  		$message = $this->composeNotificationMessage();
     //   		$this->sendEmailToDirector();
 }