- Timestamp:
- 10/01/2015 04:18:13 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php
r10142 r10163 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 33 33 * 34 34 * @param array $query Meta query arguments. 35 * 35 36 * @return bool Whether the query clause is a first-order clause. 36 37 */ … … 45 46 * @access public 46 47 * 47 * @param array $qv The query variables 48 * @param array $qv The query variables. 48 49 */ 49 50 public function parse_query_vars( $qv ) { … … 68 69 } 69 70 70 // BP_XProfile_Query sets 'object_type' = '' by default 71 // BP_XProfile_Query sets 'object_type' = '' by default. 71 72 if ( isset( $qv[ 'object_type' ] ) && ( '' !== $qv[ 'object_type' ] ) && ( ! is_array( $qv[ 'object_type' ] ) || $qv[ 'object_type' ] ) ) { 72 73 $meta_query[0]['object'] = $qv[ 'object_type' ]; … … 102 103 * @param string $primary_id_column ID column for the filtered object in $primary_table. 103 104 * @param object $context Optional. The main query object. 105 * 104 106 * @return array { 105 107 * Array containing JOIN and WHERE SQL clauses to append to the main query. … … 161 163 * @param string $clause_key Optional. The array key used to name the clause in the original `$meta_query` 162 164 * parameters. If not provided, a key will be generated automatically. 165 * 163 166 * @return array { 164 167 * Array containing JOIN and WHERE SQL clauses to append to a first-order query. … … 246 249 247 250 // Next, build the WHERE clause. 248 249 // meta_key. 251 // Meta_key. 250 252 if ( array_key_exists( 'key', $clause ) ) { 251 253 if ( 'NOT EXISTS' === $meta_compare ) { … … 256 258 } 257 259 258 // meta_value.260 // Meta_value. 259 261 if ( array_key_exists( 'value', $clause ) ) { 260 262 $meta_value = $clause['value']; … … 309 311 } 310 312 311 // object_type.313 // Object_type. 312 314 if ( array_key_exists( 'object', $clause ) ) { 313 315 $object_type = $clause['object'];
Note: See TracChangeset
for help on using the changeset viewer.