- 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-query.php
r10142 r10163 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 16 16 */ 17 17 class BP_XProfile_Query { 18 18 19 /** 19 20 * Array of xprofile queries. … … 96 97 * @access public 97 98 * 98 * @param array $queries Array of query clauses. 99 * @param array $queries Array of query clauses. 100 * 99 101 * @return array Sanitized array of query clauses. 100 102 */ … … 164 166 * 165 167 * @param array $query XProfile query arguments. 168 * 166 169 * @return bool Whether the query clause is a first-order clause. 167 170 */ … … 176 179 * @access public 177 180 * 178 * @param string $type MySQL type to cast `value`. 181 * @param string $type MySQL type to cast `value`. 182 * 179 183 * @return string MySQL type. 180 184 */ … … 238 242 * @param array $query Query to parse. 239 243 * @param int $depth Optional. Number of tree levels deep we currently are. Used to calculate indentation. 244 * 240 245 * @return array { 241 246 * Array containing JOIN and WHERE SQL clauses to append to a single query array. … … 319 324 * @param string $primary_table Database table where the object being filtered is stored (eg wp_users). 320 325 * @param string $primary_id_column ID column for the filtered object in $primary_table. 326 * 321 327 * @return array { 322 328 * Array containing JOIN and WHERE SQL clauses to append to the main query. … … 354 360 * @param array $clause Query clause. 355 361 * @param array $parent_query Parent query array. 362 * 356 363 * @return array { 357 364 * Array containing JOIN and WHERE SQL clauses to append to a first-order query. … … 422 429 $where = ''; 423 430 424 // field_id.431 // Field_id. 425 432 if ( array_key_exists( 'field', $clause ) ) { 426 433 // Convert field name to ID if necessary. … … 437 444 } 438 445 439 // value.446 // Value. 440 447 if ( array_key_exists( 'value', $clause ) ) { 441 448 $field_value = $clause['value']; … … 502 509 * @access protected 503 510 * 504 * @param array $clause Query clause. 505 * @param array $parent_query Parent query of $clause. 511 * @param array $clause Query clause. 512 * @param array $parent_query Parent query of $clause. 513 * 506 514 * @return string|bool Table alias if found, otherwise false. 507 515 */
Note: See TracChangeset
for help on using the changeset viewer.