|
@@ 635-650 (lines=16) @@
|
| 632 |
|
* @return array Simple object names |
| 633 |
|
* @since 2.3 |
| 634 |
|
*/ |
| 635 |
|
public function simple_objects() { |
| 636 |
|
|
| 637 |
|
if ( $this->setup_related_objects() || null === self::$names_simple ) { |
| 638 |
|
$simple_objects = array(); |
| 639 |
|
|
| 640 |
|
foreach ( self::$related_objects as $object => $related_object ) { |
| 641 |
|
if ( ! isset( $related_object['simple'] ) || ! $related_object['simple'] ) { |
| 642 |
|
continue; |
| 643 |
|
} |
| 644 |
|
|
| 645 |
|
$simple_objects[] = $object; |
| 646 |
|
} |
| 647 |
|
|
| 648 |
|
self::$names_simple = (array) apply_filters( 'pods_form_ui_field_pick_simple_objects', $simple_objects ); |
| 649 |
|
} |
| 650 |
|
|
| 651 |
|
return self::$names_simple; |
| 652 |
|
|
| 653 |
|
} |
|
@@ 661-676 (lines=16) @@
|
| 658 |
|
* @return array Bidirectional object names |
| 659 |
|
* @since 2.3.4 |
| 660 |
|
*/ |
| 661 |
|
public function bidirectional_objects() { |
| 662 |
|
|
| 663 |
|
if ( $this->setup_related_objects() || null === self::$names_bidirectional ) { |
| 664 |
|
$bidirectional_objects = array(); |
| 665 |
|
|
| 666 |
|
foreach ( self::$related_objects as $object => $related_object ) { |
| 667 |
|
if ( ! isset( $related_object['bidirectional'] ) || ! $related_object['bidirectional'] ) { |
| 668 |
|
continue; |
| 669 |
|
} |
| 670 |
|
|
| 671 |
|
$bidirectional_objects[] = $object; |
| 672 |
|
} |
| 673 |
|
|
| 674 |
|
self::$names_bidirectional = (array) apply_filters( 'pods_form_ui_field_pick_bidirectional_objects', $bidirectional_objects ); |
| 675 |
|
} |
| 676 |
|
|
| 677 |
|
return self::$names_bidirectional; |
| 678 |
|
|
| 679 |
|
} |