| @@ 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 ) |
|
| @@ 1332-1336 (lines=5) @@ | ||
| 1329 | */ |
|
| 1330 | public function data( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
| 1331 | ||
| 1332 | if ( isset( $options['options'] ) ) { |
|
| 1333 | $options = array_merge( $options, $options['options'] ); |
|
| 1334 | ||
| 1335 | unset( $options['options'] ); |
|
| 1336 | } |
|
| 1337 | ||
| 1338 | $data = pods_v( 'data', $options, null, true ); |
|
| 1339 | ||
| @@ 1380-1384 (lines=5) @@ | ||
| 1377 | public function simple_value( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
| 1378 | ||
| 1379 | if ( in_array( pods_v( self::$type . '_object', $options ), self::simple_objects(), true ) ) { |
|
| 1380 | if ( isset( $options['options'] ) ) { |
|
| 1381 | $options = array_merge( $options, $options['options'] ); |
|
| 1382 | ||
| 1383 | unset( $options['options'] ); |
|
| 1384 | } |
|
| 1385 | ||
| 1386 | if ( ! is_array( $value ) && 0 < strlen( $value ) ) { |
|
| 1387 | $simple = @json_decode( $value, true ); |
|
| @@ 1477-1481 (lines=5) @@ | ||
| 1474 | */ |
|
| 1475 | public function value_to_label( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
| 1476 | ||
| 1477 | if ( isset( $options['options'] ) ) { |
|
| 1478 | $options = array_merge( $options, $options['options'] ); |
|
| 1479 | ||
| 1480 | unset( $options['options'] ); |
|
| 1481 | } |
|
| 1482 | ||
| 1483 | $data = pods_v( 'data', $options, null, true ); |
|
| 1484 | ||
| @@ 1617-1621 (lines=5) @@ | ||
| 1614 | $page = min( 1, (int) $object_params['page'] ); |
|
| 1615 | $limit = (int) $object_params['limit']; |
|
| 1616 | ||
| 1617 | if ( isset( $options['options'] ) ) { |
|
| 1618 | $options = array_merge( $options, $options['options'] ); |
|
| 1619 | ||
| 1620 | unset( $options['options'] ); |
|
| 1621 | } |
|
| 1622 | ||
| 1623 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
| 1624 | $items = array(); |
|