@@ 541-549 (lines=9) @@ | ||
538 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
539 | break; |
|
540 | case 'post_reference' : |
|
541 | case 'comment_reference' : |
|
542 | $docs = array( |
|
543 | 'ID' => '(int)', |
|
544 | 'type' => '(string)', |
|
545 | 'title' => '(string)', |
|
546 | 'link' => '(URL)', |
|
547 | ); |
|
548 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
549 | break; |
|
550 | case 'geo' : |
|
551 | $docs = array( |
|
552 | 'latitude' => '(float)', |
|
@@ 550-557 (lines=8) @@ | ||
547 | ); |
|
548 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
549 | break; |
|
550 | case 'geo' : |
|
551 | $docs = array( |
|
552 | 'latitude' => '(float)', |
|
553 | 'longitude' => '(float)', |
|
554 | 'address' => '(string)', |
|
555 | ); |
|
556 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
557 | break; |
|
558 | case 'author' : |
|
559 | $docs = array( |
|
560 | 'ID' => '(int)', |
|
@@ 577-584 (lines=8) @@ | ||
574 | ); |
|
575 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
576 | break; |
|
577 | case 'role' : |
|
578 | $docs = array( |
|
579 | 'name' => '(string)', |
|
580 | 'display_name' => '(string)', |
|
581 | 'capabilities' => '(object:boolean)', |
|
582 | ); |
|
583 | $return[$key] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
584 | break; |
|
585 | case 'attachment' : |
|
586 | $docs = array( |
|
587 | 'ID' => '(int)', |