5 if ( ! defined(
'GRAVITYVIEW_DIR' ) ) {
46 public function __construct( $join, $join_column, $join_on, $join_on_column ) {
51 if ( $join_on instanceof \
GV\Source ) {
52 $this->join_on = $join_on;
55 if ( $join_column instanceof \
GV\
Field ) {
56 $this->join_column = $join_column;
59 if ( $join_on_column instanceof \
GV\Field ) {
60 $this->join_on_column = $join_on_column;
73 if ( !
gravityview()->plugin->supports( Plugin::FEATURE_JOINS ) ) {
77 if ( ! $query instanceof \GF_Query ) {
78 gravityview()->log->error(
'Query not instance of \GF_Query.' );
82 $join_id = intval( $this->join->ID );
83 $join_on_id = intval( $this->join_on->ID );
85 if ( empty( $join_id ) || empty( $join_on_id ) ) {
86 gravityview()->log->error(
'Query join form not an integer.', array(
'data' => $this ) );
91 new \GF_Query_Column( $this->join_on_column->ID, $join_on_id ),
92 new \GF_Query_Column( $this->join_column->ID, $join_id )
__construct( $join, $join_column, $join_on, $join_on_column)
Construct a JOIN container.
as_query_join( $query)
Inject this join into the query.
If this file is called directly, abort.
If this file is called directly, abort.
gravityview()
The main GravityView wrapper function.
If this file is called directly, abort.