| @@ 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 ) |
|
| @@ 1136-1140 (lines=5) @@ | ||
| 1133 | * @since 2.0 |
|
| 1134 | */ |
|
| 1135 | public function data ( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
| 1136 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1137 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1138 | ||
| 1139 | unset( $options[ 'options' ] ); |
|
| 1140 | } |
|
| 1141 | ||
| 1142 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1143 | ||
| @@ 1180-1184 (lines=5) @@ | ||
| 1177 | */ |
|
| 1178 | public function simple_value ( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
| 1179 | if ( in_array( pods_var( self::$type . '_object', $options ), self::simple_objects() ) ) { |
|
| 1180 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1181 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1182 | ||
| 1183 | unset( $options[ 'options' ] ); |
|
| 1184 | } |
|
| 1185 | ||
| 1186 | if ( !is_array( $value ) && 0 < strlen( $value ) ) { |
|
| 1187 | $simple = @json_decode( $value, true ); |
|
| @@ 1273-1277 (lines=5) @@ | ||
| 1270 | * @since 2.2 |
|
| 1271 | */ |
|
| 1272 | public function value_to_label ( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
| 1273 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1274 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1275 | ||
| 1276 | unset( $options[ 'options' ] ); |
|
| 1277 | } |
|
| 1278 | ||
| 1279 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
| 1280 | ||
| @@ 1402-1406 (lines=5) @@ | ||
| 1399 | $page = min( 1, (int) $object_params[ 'page' ] ); |
|
| 1400 | $limit = (int) $object_params[ 'limit' ]; |
|
| 1401 | ||
| 1402 | if ( isset( $options[ 'options' ] ) ) { |
|
| 1403 | $options = array_merge( $options, $options[ 'options' ] ); |
|
| 1404 | ||
| 1405 | unset( $options[ 'options' ] ); |
|
| 1406 | } |
|
| 1407 | ||
| 1408 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
| 1409 | $items = array(); |
|