| | |
| | | break;
|
| | | case 'INTEGER':
|
| | | $new_record[$key] = intval($record[$key]);
|
| | | //if($new_record[$key] != $record[$key]) $new_record[$key] = $field['default'];
|
| | | //if($key == 'refresh') die($record[$key]);
|
| | | break;
|
| | | case 'DOUBLE':
|
| | | $new_record[$key] = addslashes($record[$key]);
|
| | |
| | | $this->errorMessage .= $this->wordbook[$errmsg]."<br>\r\n";
|
| | | }
|
| | | break;
|
| | | case 'ISPOSITIVE':
|
| | | if(!is_numeric($field_value) || $field_value <= 0){
|
| | | $errmsg = $validator['errmsg'];
|
| | | $this->errorMessage .= $this->wordbook[$errmsg]."<br>\r\n";
|
| | | }
|
| | | break;
|
| | | case 'CUSTOM':
|
| | | // Calls a custom class to validate this record
|
| | | if($validator['class'] != '' and $validator['function'] != '') {
|