Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/01/2015 04:18:13 AM (10 years ago)
Author:
tw2113
Message:

First pass of documentation cleanup for the XProfile Component.

See #6406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php

    r10142 r10163  
    11<?php
    22/**
    3  * BuddyPress XProfile Classes
     3 * BuddyPress XProfile Classes.
    44 *
    55 * @package BuddyPress
     
    3333     *
    3434     * @param array $query Meta query arguments.
     35     *
    3536     * @return bool Whether the query clause is a first-order clause.
    3637     */
     
    4546     * @access public
    4647     *
    47      * @param array $qv The query variables
     48     * @param array $qv The query variables.
    4849     */
    4950    public function parse_query_vars( $qv ) {
     
    6869        }
    6970
    70         // BP_XProfile_Query sets 'object_type' = '' by default
     71        // BP_XProfile_Query sets 'object_type' = '' by default.
    7172        if ( isset( $qv[ 'object_type' ] ) && ( '' !== $qv[ 'object_type' ] ) && ( ! is_array( $qv[ 'object_type' ] ) || $qv[ 'object_type' ] ) ) {
    7273            $meta_query[0]['object'] = $qv[ 'object_type' ];
     
    102103     * @param string $primary_id_column ID column for the filtered object in $primary_table.
    103104     * @param object $context           Optional. The main query object.
     105     *
    104106     * @return array {
    105107     *     Array containing JOIN and WHERE SQL clauses to append to the main query.
     
    161163     * @param string $clause_key   Optional. The array key used to name the clause in the original `$meta_query`
    162164     *                             parameters. If not provided, a key will be generated automatically.
     165     *
    163166     * @return array {
    164167     *     Array containing JOIN and WHERE SQL clauses to append to a first-order query.
     
    246249
    247250        // Next, build the WHERE clause.
    248 
    249         // meta_key.
     251        // Meta_key.
    250252        if ( array_key_exists( 'key', $clause ) ) {
    251253            if ( 'NOT EXISTS' === $meta_compare ) {
     
    256258        }
    257259
    258         // meta_value.
     260        // Meta_value.
    259261        if ( array_key_exists( 'value', $clause ) ) {
    260262            $meta_value = $clause['value'];
     
    309311        }
    310312
    311         // object_type.
     313        // Object_type.
    312314        if ( array_key_exists( 'object', $clause ) ) {
    313315            $object_type = $clause['object'];
Note: See TracChangeset for help on using the changeset viewer.