Index: branches/preferences-work/phase3/includes/HTMLForm.php |
— | — | @@ -312,6 +312,16 @@ |
313 | 313 | $this->mFieldData = $fieldData; |
314 | 314 | } |
315 | 315 | |
| 316 | + function importData( $fieldData ) { |
| 317 | + // Filter data. |
| 318 | + foreach( $fieldData as $name => &$value ) { |
| 319 | + $field = $this->mFlatFields[$name]; |
| 320 | + $value = $field->filter( $value, $this->mFlatFields ); |
| 321 | + } |
| 322 | + |
| 323 | + $this->mFieldData = $fieldData; |
| 324 | + } |
| 325 | + |
316 | 326 | function suppressReset( $suppressReset = true ) { |
317 | 327 | $this->mShowReset = !$suppressReset; |
318 | 328 | } |