|
@@ 480-487 (lines=8) @@
|
| 477 |
|
} |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
if ( isset( $type['children'] ) ) { |
| 481 |
|
$children = array(); |
| 482 |
|
foreach ( (array) $value as $k => $child ) { |
| 483 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 484 |
|
} |
| 485 |
|
$return[ $key ] = (array) $children; |
| 486 |
|
break; |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
$return[ $key ] = (array) $value; |
| 490 |
|
break; |
|
@@ 520-527 (lines=8) @@
|
| 517 |
|
} |
| 518 |
|
} |
| 519 |
|
|
| 520 |
|
if ( isset( $type['children'] ) ) { |
| 521 |
|
$children = array(); |
| 522 |
|
foreach ( (array) $value as $k => $child ) { |
| 523 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 524 |
|
} |
| 525 |
|
$return[ $key ] = (object) $children; |
| 526 |
|
break; |
| 527 |
|
} |
| 528 |
|
|
| 529 |
|
if ( isset( $type['subtype'] ) ) { |
| 530 |
|
return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |