| @@ 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 ) |
|
| @@ 1073-1077 (lines=5) @@ | ||
| 1070 | * @since 2.0 |
|
| 1071 | */ |
|
| 1072 | public function data ( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
| 1073 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1074 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1075 | ||
| 1076 | unset( $options[ 'options' ] ); |
|
| 1077 | } |
|
| 1078 | ||
| 1079 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1080 | ||
| @@ 1117-1121 (lines=5) @@ | ||
| 1114 | */ |
|
| 1115 | public function simple_value ( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
| 1116 | if ( in_array( pods_var( self::$type . '_object', $options ), self::simple_objects() ) ) { |
|
| 1117 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1118 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1119 | ||
| 1120 | unset( $options[ 'options' ] ); |
|
| 1121 | } |
|
| 1122 | ||
| 1123 | if ( !is_array( $value ) && 0 < strlen( $value ) ) { |
|
| 1124 | $simple = @json_decode( $value, true ); |
|
| @@ 1210-1214 (lines=5) @@ | ||
| 1207 | * @since 2.2 |
|
| 1208 | */ |
|
| 1209 | public function value_to_label ( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
| 1210 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1211 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1212 | ||
| 1213 | unset( $options[ 'options' ] ); |
|
| 1214 | } |
|
| 1215 | ||
| 1216 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1217 | ||
| @@ 1339-1343 (lines=5) @@ | ||
| 1336 | $page = min( 1, (int) $object_params[ 'page' ] ); |
|
| 1337 | $limit = (int) $object_params[ 'limit' ]; |
|
| 1338 | ||
| 1339 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1340 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1341 | ||
| 1342 | unset( $options[ 'options' ] ); |
|
| 1343 | } |
|
| 1344 | ||
| 1345 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
| 1346 | $items = array(); |
|