|
@@ 439-446 (lines=8) @@
|
| 436 |
|
} |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
if ( isset( $type['children'] ) ) { |
| 440 |
|
$children = array(); |
| 441 |
|
foreach ( (array) $value as $k => $child ) { |
| 442 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 443 |
|
} |
| 444 |
|
$return[$key] = (array) $children; |
| 445 |
|
break; |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
$return[$key] = (array) $value; |
| 449 |
|
break; |
|
@@ 479-486 (lines=8) @@
|
| 476 |
|
} |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
if ( isset( $type['children'] ) ) { |
| 480 |
|
$children = array(); |
| 481 |
|
foreach ( (array) $value as $k => $child ) { |
| 482 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 483 |
|
} |
| 484 |
|
$return[$key] = (object) $children; |
| 485 |
|
break; |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
if ( isset( $type['subtype'] ) ) { |
| 489 |
|
return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |