|
@@ 733-748 (lines=16) @@
|
| 730 |
|
* @return array Simple object names |
| 731 |
|
* @since 2.3 |
| 732 |
|
*/ |
| 733 |
|
public function simple_objects () { |
| 734 |
|
if ( $this->setup_related_objects() || null === self::$names_simple ) { |
| 735 |
|
$simple_objects = array(); |
| 736 |
|
|
| 737 |
|
foreach ( self::$related_objects as $object => $related_object ) { |
| 738 |
|
if ( !isset( $related_object[ 'simple' ] ) || !$related_object[ 'simple' ] ) |
| 739 |
|
continue; |
| 740 |
|
|
| 741 |
|
$simple_objects[] = $object; |
| 742 |
|
} |
| 743 |
|
|
| 744 |
|
self::$names_simple = (array) apply_filters( 'pods_form_ui_field_pick_simple_objects', $simple_objects ); |
| 745 |
|
} |
| 746 |
|
|
| 747 |
|
return self::$names_simple; |
| 748 |
|
} |
| 749 |
|
|
| 750 |
|
/** |
| 751 |
|
* Return available bidirectional object names |
|
@@ 756-771 (lines=16) @@
|
| 753 |
|
* @return array Bidirectional object names |
| 754 |
|
* @since 2.3.4 |
| 755 |
|
*/ |
| 756 |
|
public function bidirectional_objects () { |
| 757 |
|
if ( $this->setup_related_objects() || null === self::$names_bidirectional ) { |
| 758 |
|
$bidirectional_objects = array(); |
| 759 |
|
|
| 760 |
|
foreach ( self::$related_objects as $object => $related_object ) { |
| 761 |
|
if ( !isset( $related_object[ 'bidirectional' ] ) || !$related_object[ 'bidirectional' ] ) |
| 762 |
|
continue; |
| 763 |
|
|
| 764 |
|
$bidirectional_objects[] = $object; |
| 765 |
|
} |
| 766 |
|
|
| 767 |
|
self::$names_bidirectional = (array) apply_filters( 'pods_form_ui_field_pick_bidirectional_objects', $bidirectional_objects ); |
| 768 |
|
} |
| 769 |
|
|
| 770 |
|
return self::$names_bidirectional; |
| 771 |
|
} |
| 772 |
|
|
| 773 |
|
/** |
| 774 |
|
* Define the current field's schema for DB table storage |