Index: branches/unlabeled/unlabeled-1.2.4/core/kernel/utility/formatters/formatter.php =================================================================== diff -u -r7488 -r7532 --- branches/unlabeled/unlabeled-1.2.4/core/kernel/utility/formatters/formatter.php (.../formatter.php) (revision 7488) +++ branches/unlabeled/unlabeled-1.2.4/core/kernel/utility/formatters/formatter.php (.../formatter.php) (revision 7532) @@ -52,6 +52,19 @@ return $ret ? $value : false; } + function TypeCastArray($src, &$object) + { + $dst = array(); + foreach ($src as $id => $row) { + $tmp_row = array(); + foreach ($row as $fld => $value) { + $tmp_row[$fld] = $this->TypeCast($value, $object->Fields[$fld]); + } + $dst[$id] = $tmp_row; + } + return $dst; + } + //function Format($value, $options, &$errors) function Format($value, $field_name, &$object, $format=null) {