/** * 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; }