Exemple #1
0
 /**
  *  using the $table normalize the fields to make sure the values are what they should be
  *  to query against the table   
  *
  *  @since  5-7-11
  *  @param  MingoTable  $table   
  */
 public function normalizeFields(MingoTable $table)
 {
     foreach ($this->field_map as $name => $val_list) {
         if ($table->hasField($name)) {
             $field = $table->getField($name);
             foreach (array_keys($val_list) as $key) {
                 $val_list[$key] = $field->normalizeInVal($val_list[$key]);
             }
             //foreach
         }
         //if
     }
     //foreach
 }