History of ClassStructure

Differences from version 5 to 6



@@ -30,27 +30,27 @@

  if( $this->mFeatureID ) {
  $this->mRow = {... select data from db where feature_id=$this->mFeatureID ...}
  }
- return( count( $this->mErrors ) == 0 );
+ return count( $this->mErrors ) == 0;
  }
 
  // This verifies data integrity. NOTE: pass by reference is crucial, because
  // some modifications might be necessary (length truncation, etc.);
  function verify( &$inParams ) {
  // clean up variables
- foreach( array_keys($inParams) as $key ) {
- $inParams[[$key] = trim( $inParams[[$key] );
+ foreach( $inParams as $key => $value ) {
+ $inParams[$key] = trim( $value );
  }
 
- if( empty( $inParams[['required_column'] ) ) {
- $this->mErrors[['required_column'] = SOME_ERROR_MESSAGE;
- } elseif( strlen( $inParams[['required_column'] ) > FEATURE_LENGTH ) {
- $inParams[['required_column'] = substring( $inParams[['required_column'],
+ if( empty( $inParams['required_column'] ) ) {
+ $this->mErrors['required_column'] = SOME_ERROR_MESSAGE;
+ } elseif( strlen( $inParams['required_column'] ) > FEATURE_LENGTH ) {
+ $inParams['required_column'] = substring( $inParams['required_column'],
  0, FEATURE_LENGTH );
  }
 
  {... continue testing hash values various conditions ...}
 
- return( count( $this->mErrors ) == 0 );
+ return count( $this->mErrors ) == 0;
  }
 
  // this method stores the data.

@@ -65,12 +65,12 @@

  }
  $this->mDB->CompleteTrans();
  }
- return( count( $this->mErrors ) == 0 );
+ return count( $this->mErrors ) == 0;
  }
 
  funciton expunge() {
  {... delete appropriate rows for this feature in all necessary tables ...}
- return( count( $this->mErrors ) == 0 );
+ return count( $this->mErrors ) == 0;
  }
  }
 {code}
Page History
Date/CommentUserIPVersion
28 Apr 2010 (08:16 UTC)
bugmenot169.232.246.1696
Current • Source
spiderr69.134.148.405
View • Compare • Difference • Source
spiderr66.93.240.2044
View • Compare • Difference • Source
spiderr66.93.240.2043
View • Compare • Difference • Source
SEWilco209.98.144.162
View • Compare • Difference • Source