/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); /* * check here for specific cases not covered by simple Field * Definitions. */ // Example : error checking // NOTE: a custom error label [error_UniqueModuleName] is used // for the error. This error label is created in the Page Labels // form. // Make sure that module name doesn't already exist... // if ($isValid) { // $isValid = $this->dataManager->isUniqueModuleName(); // $this->formErrors[ 'module_name' ] = $this->labels->getLabel( '[error_UniqueModuleName]'); /// } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. Because this page is made up of * sub-pages we just need to figure out the appropriate isDataValid() call * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); // $isValid = $this->active_subPage->isDataValid(); // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); /* * check here for specific cases not covered by simple Field * Definitions. */ if ($isValid) { $name = $this->formValues['page_name']; $isValid = $this->dataManager->isUniqueName($name, $this->module_id); if (!$isValid) { $this->formErrors['page_name'] = $this->labels->getLabel('[error_UniqueName]'); } } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); /* * check here for specific cases not covered by simple Field * Definitions. */ // Example : error checking // NOTE: a custom error label [error_UniqueModuleName] is used // for the error. This error label is created in the Page Labels // form. // Make sure that module name doesn't already exist... if ($isValid) { $pword = $this->formValues['viewer_passWord']; $pword2 = $this->formValues['pword2']; if ($pword != $pword2) { $isValid = false; $this->formErrors['viewer_passWord'] = $this->labels->getLabel('[error_passwordMatch]'); } $userID = $this->formValues['viewer_userID']; if (!$this->dataManager->isUniqueUserID($userID)) { $isValid = false; $this->formErrors['viewer_userID'] = $this->labels->getLabel('[error_uniqueUserID]'); } } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. Because this page is made up of * sub-pages we just need to figure out the appropriate isDataValid() call * </pre> * @return [BOOL] */ function isDataValid() { if ($this->active_subPage == null) { $isValid = parent::isDataValid(); } else { $isValid = $this->active_subPage->isDataValid(); } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. Because this page is made up of * sub-pages we just need to figure out the appropriate isDataValid() call * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); // do NOT allow starting freq. range value to be less than ending value // if ($this->formValues['freq_value_id'] > $this->formValues['freq_value_id_2']) // { // $isValid = false; // $this->formErrors[ 'freq_value_id' ] = 'Starting range value must be greater than or equal to the ending range value.'; // } /* * check here for specific cases not covered by simple Field * Definitions. */ // Example : error checking // NOTE: a custom error label [error_UniqueModuleName] is used // for the error. This error label is created in the Page Labels // form. // Make sure that module name doesn't already exist... // if ($isValid) { // $isValid = $this->dataManager->isUniqueModuleName(); // $this->formErrors[ 'module_name' ] = $this->labels->getLabel( '[error_UniqueModuleName]'); /// } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); // Make sure that module name doesn't already exist... if ($isValid) { $isValid = $this->dataManager->isUniqueModuleName($this->formValues['module_name']); $this->formErrors['module_name'] = $this->labels->getLabel('[error_UniqueModuleName]'); } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); /* * check here for specific cases not covered by simple Field * Definitions. */ if ($isValid) { $userID = $this->formValues['viewer_userID']; if (!$this->dataManager->isUniqueUserID($userID)) { $isValid = false; $this->formErrors['viewer_userID'] = $this->labels->getLabel('[error_uniqueUserID]'); } } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. Because this page is made up of * sub-pages we just need to figure out the appropriate isDataValid() call * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); // Make sure that state var name doesn't already exist... if ($isValid) { $currentName = $this->formValues['statevar_name']; $isValid = $this->dataManager->isUniqueName($currentName, $this->module_id); if (!$isValid) { $this->formErrors['statevar_name'] = $this->labels->getLabel('[error_UniqueName]'); } } // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies that the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = true; // for each rowItem in rowManager ... $this->rowManager->setFirst(); while ($rowItem = $this->rowManager->getNext()) { $isValid = parent::isDataValid($rowItem->getPrimaryKeyValue()) && $isValid == true; } // next rowItem // now return result return $isValid; }
/** * function isDataValid * <pre> * Verifies the returned data is valid. * </pre> * @return [BOOL] */ function isDataValid() { $isValid = parent::isDataValid(); /* * check here for specific cases not covered by simple Field * Definitions. */ if ($isValid) { $pword = $this->formValues['viewer_passWord']; $pword2 = $this->formValues['pword2']; if ($pword != $pword2) { $isValid = false; $this->formErrors['viewer_passWord'] = $this->labels->getLabel('[error_passwordMatch]'); $this->formErrors['pword2'] = $this->labels->getLabel('[error_passwordMatch]'); } } // now return result return $isValid; }