| @@ 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 ) |
|
| @@ 1373-1377 (lines=5) @@ | ||
| 1370 | */ |
|
| 1371 | public function data( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
| 1372 | ||
| 1373 | if ( isset( $options['options'] ) ) { |
|
| 1374 | $options = array_merge( $options, $options['options'] ); |
|
| 1375 | ||
| 1376 | unset( $options['options'] ); |
|
| 1377 | } |
|
| 1378 | ||
| 1379 | $data = pods_v( 'data', $options, null, true ); |
|
| 1380 | ||
| @@ 1421-1425 (lines=5) @@ | ||
| 1418 | public function simple_value( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
| 1419 | ||
| 1420 | if ( in_array( pods_v( self::$type . '_object', $options ), self::simple_objects(), true ) ) { |
|
| 1421 | if ( isset( $options['options'] ) ) { |
|
| 1422 | $options = array_merge( $options, $options['options'] ); |
|
| 1423 | ||
| 1424 | unset( $options['options'] ); |
|
| 1425 | } |
|
| 1426 | ||
| 1427 | if ( ! is_array( $value ) && 0 < strlen( $value ) ) { |
|
| 1428 | $simple = @json_decode( $value, true ); |
|
| @@ 1518-1522 (lines=5) @@ | ||
| 1515 | */ |
|
| 1516 | public function value_to_label( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
| 1517 | ||
| 1518 | if ( isset( $options['options'] ) ) { |
|
| 1519 | $options = array_merge( $options, $options['options'] ); |
|
| 1520 | ||
| 1521 | unset( $options['options'] ); |
|
| 1522 | } |
|
| 1523 | ||
| 1524 | $data = pods_v( 'data', $options, null, true ); |
|
| 1525 | ||
| @@ 1658-1662 (lines=5) @@ | ||
| 1655 | $page = min( 1, (int) $object_params['page'] ); |
|
| 1656 | $limit = (int) $object_params['limit']; |
|
| 1657 | ||
| 1658 | if ( isset( $options['options'] ) ) { |
|
| 1659 | $options = array_merge( $options, $options['options'] ); |
|
| 1660 | ||
| 1661 | unset( $options['options'] ); |
|
| 1662 | } |
|
| 1663 | ||
| 1664 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
| 1665 | $items = array(); |
|