| @@ 617-621 (lines=5) @@ | ||
| 614 | } |
|
| 615 | ||
| 616 | foreach ( $export[ 'pods' ] as &$pod ) { |
|
| 617 | if ( isset( $pod[ 'options' ] ) ) { |
|
| 618 | $pod = array_merge( $pod, $pod[ 'options' ] ); |
|
| 619 | ||
| 620 | unset( $pod[ 'options' ] ); |
|
| 621 | } |
|
| 622 | ||
| 623 | foreach ( $pod as $option => $option_value ) { |
|
| 624 | if ( in_array( $option, $options_ignore ) || null === $option_value ) |
|
| @@ 630-634 (lines=5) @@ | ||
| 627 | ||
| 628 | if ( !empty( $pod[ 'fields' ] ) ) { |
|
| 629 | foreach ( $pod[ 'fields' ] as &$field ) { |
|
| 630 | if ( isset( $field[ 'options' ] ) ) { |
|
| 631 | $field = array_merge( $field, $field[ 'options' ] ); |
|
| 632 | ||
| 633 | unset( $field[ 'options' ] ); |
|
| 634 | } |
|
| 635 | ||
| 636 | foreach ( $field as $option => $option_value ) { |
|
| 637 | if ( in_array( $option, $options_ignore ) || null === $option_value ) |
|
| @@ 1059-1063 (lines=5) @@ | ||
| 1056 | * @since 2.0 |
|
| 1057 | */ |
|
| 1058 | public function data ( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
| 1059 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1060 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1061 | ||
| 1062 | unset( $options[ 'options' ] ); |
|
| 1063 | } |
|
| 1064 | ||
| 1065 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1066 | ||
| @@ 1103-1107 (lines=5) @@ | ||
| 1100 | */ |
|
| 1101 | public function simple_value ( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
| 1102 | if ( in_array( pods_var( self::$type . '_object', $options ), self::simple_objects() ) ) { |
|
| 1103 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1104 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1105 | ||
| 1106 | unset( $options[ 'options' ] ); |
|
| 1107 | } |
|
| 1108 | ||
| 1109 | if ( !is_array( $value ) && 0 < strlen( $value ) ) { |
|
| 1110 | $simple = @json_decode( $value, true ); |
|
| @@ 1196-1200 (lines=5) @@ | ||
| 1193 | * @since 2.2 |
|
| 1194 | */ |
|
| 1195 | public function value_to_label ( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
| 1196 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1197 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1198 | ||
| 1199 | unset( $options[ 'options' ] ); |
|
| 1200 | } |
|
| 1201 | ||
| 1202 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1203 | ||
| @@ 1330-1334 (lines=5) @@ | ||
| 1327 | $page = min( 1, (int) $object_params[ 'page' ] ); |
|
| 1328 | $limit = (int) $object_params[ 'limit' ]; |
|
| 1329 | ||
| 1330 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1331 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1332 | ||
| 1333 | unset( $options[ 'options' ] ); |
|
| 1334 | } |
|
| 1335 | ||
| 1336 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
| 1337 | $items = array(); |
|