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