@@ 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 ) |
@@ 1124-1128 (lines=5) @@ | ||
1121 | * @since 2.0 |
|
1122 | */ |
|
1123 | public function data ( $name, $value = null, $options = null, $pod = null, $id = null, $in_form = true ) { |
|
1124 | if ( isset( $options[ 'options' ] ) ) { |
|
1125 | $options = array_merge( $options, $options[ 'options' ] ); |
|
1126 | ||
1127 | unset( $options[ 'options' ] ); |
|
1128 | } |
|
1129 | ||
1130 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
1131 | ||
@@ 1168-1172 (lines=5) @@ | ||
1165 | */ |
|
1166 | public function simple_value ( $name, $value = null, $options = null, $pod = null, $id = null, $raw = false ) { |
|
1167 | if ( in_array( pods_var( self::$type . '_object', $options ), self::simple_objects() ) ) { |
|
1168 | if ( isset( $options[ 'options' ] ) ) { |
|
1169 | $options = array_merge( $options, $options[ 'options' ] ); |
|
1170 | ||
1171 | unset( $options[ 'options' ] ); |
|
1172 | } |
|
1173 | ||
1174 | if ( !is_array( $value ) && 0 < strlen( $value ) ) { |
|
1175 | $simple = @json_decode( $value, true ); |
|
@@ 1261-1265 (lines=5) @@ | ||
1258 | * @since 2.2 |
|
1259 | */ |
|
1260 | public function value_to_label ( $name, $value = null, $options = null, $pod = null, $id = null ) { |
|
1261 | if ( isset( $options[ 'options' ] ) ) { |
|
1262 | $options = array_merge( $options, $options[ 'options' ] ); |
|
1263 | ||
1264 | unset( $options[ 'options' ] ); |
|
1265 | } |
|
1266 | ||
1267 | $data = pods_var_raw( 'data', $options, null, null, true ); |
|
1268 | ||
@@ 1390-1394 (lines=5) @@ | ||
1387 | $page = min( 1, (int) $object_params[ 'page' ] ); |
|
1388 | $limit = (int) $object_params[ 'limit' ]; |
|
1389 | ||
1390 | if ( isset( $options[ 'options' ] ) ) { |
|
1391 | $options = array_merge( $options, $options[ 'options' ] ); |
|
1392 | ||
1393 | unset( $options[ 'options' ] ); |
|
1394 | } |
|
1395 | ||
1396 | $data = apply_filters( 'pods_field_pick_object_data', null, $name, $value, $options, $pod, $id, $object_params ); |
|
1397 | $items = array(); |