|
@@ 418-425 (lines=8) @@
|
| 415 |
|
} |
| 416 |
|
} |
| 417 |
|
|
| 418 |
|
if ( isset( $type['children'] ) ) { |
| 419 |
|
$children = array(); |
| 420 |
|
foreach ( (array) $value as $k => $child ) { |
| 421 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 422 |
|
} |
| 423 |
|
$return[$key] = (array) $children; |
| 424 |
|
break; |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
$return[$key] = (array) $value; |
| 428 |
|
break; |
|
@@ 458-465 (lines=8) @@
|
| 455 |
|
} |
| 456 |
|
} |
| 457 |
|
|
| 458 |
|
if ( isset( $type['children'] ) ) { |
| 459 |
|
$children = array(); |
| 460 |
|
foreach ( (array) $value as $k => $child ) { |
| 461 |
|
$this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
| 462 |
|
} |
| 463 |
|
$return[$key] = (object) $children; |
| 464 |
|
break; |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
if ( isset( $type['subtype'] ) ) { |
| 468 |
|
return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |