Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/25/2015 12:18:18 AM (9 years ago)
Author:
tw2113
Message:

Standardizing our @since tags for the XProfile component.

See #6576.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r9819 r10140  
    11<?php
    2 
    3 /**
    4  * BuddyPress XProfile Filters
     2/**
     3 * BuddyPress XProfile Filters.
    54 *
    65 * Business functions are where all the magic happens in BuddyPress. They will
     
    109 *
    1110 * @package BuddyPress
    12  * @subpackage XProfileFilters
    13  */
    14 
    15 // Exit if accessed directly
     11 * @subpackage XProfileFunctions
     12 */
     13
     14// Exit if accessed directly.
    1615defined( 'ABSPATH' ) || exit;
    1716
     
    2322 * Procedural wrapper for BP_XProfile_Group::get() method.
    2423 *
    25  * @since BuddyPress (2.1.0)
     24 * @since 2.1.0
    2625 *
    2726 * @param array $args See {@link BP_XProfile_Group::get()} for description of
     
    3635     * Filters a set of field groups, populated with fields and field data.
    3736     *
    38      * @since BuddyPress (2.1.0)
     37     * @since 2.1.0
    3938     *
    4039     * @param array $groups Array of field groups and field data.
     
    4746 * Insert a new profile field group
    4847 *
    49  * @since BuddyPress (1.0.0)
     48 * @since 1.0.0
    5049 *
    5150 * @param type $args
     
    7978 * Get a specific profile field group
    8079 *
    81  * @since BuddyPress (1.0.0)
     80 * @since 1.0.0
    8281 *
    8382 * @param int $field_group_id
     
    101100 * Delete a specific profile field group
    102101 *
    103  * @since BuddyPress (1.0.0)
     102 * @since 1.0.0
    104103 *
    105104 * @param int $field_group_id
     
    123122 * Update the position of a specific profile field group
    124123 *
    125  * @since BuddyPress (1.0.0)
     124 * @since 1.0.0
    126125 *
    127126 * @param int $field_group_id
     
    140139 *
    141140 * @return array Key/value pairs (field type => class name).
    142  * @since BuddyPress (2.0.0)
     141 * @since 2.0.0
    143142 */
    144143function bp_xprofile_get_field_types() {
     
    160159     * If you've added a custom field type in a plugin, register it with this filter.
    161160     *
    162      * @since BuddyPress (2.0.0)
     161     * @since 2.0.0
    163162     *
    164163     * @param array $fields Array of field type/class name pairings.
     
    172171 * @param string $type Type of profile field to create. See {@link bp_xprofile_get_field_types()} for default core values.
    173172 * @return object If field type unknown, returns BP_XProfile_Field_Type_Textarea. Otherwise returns an instance of the relevant child class of BP_XProfile_Field_Type.
    174  * @since BuddyPress (2.0.0)
     173 * @since 2.0.0
    175174 */
    176175function bp_xprofile_create_field_type( $type ) {
     
    324323             * Filters the field data value for a specific field for the user.
    325324             *
    326              * @since BuddyPress (1.0.0)
     325             * @since 1.0.0
    327326             *
    328327             * @param string $value    Value saved for the field.
     
    377376     * doing field-type-specific validation.
    378377     *
    379      * @since BuddyPress (2.1.0)
     378     * @since 2.1.0
    380379     *
    381380     * @param mixed $value Value passed to xprofile_set_field_data()
     
    458457 * Get the visibility level for a field.
    459458 *
    460  * @since BuddyPress (2.0.0)
     459 * @since 2.0.0
    461460 *
    462461 * @param int $field_id The ID of the xprofile field.
     
    567566     * Filters a random piece of profile data for the user.
    568567     *
    569      * @since BuddyPress (1.0.0)
     568     * @since 1.0.0
    570569     *
    571570     * @param array $field_data Array holding random profile data.
     
    613612 * globals before attempting any overrides.
    614613 *
    615  * @since BuddyPress (2.0.0)
     614 * @since 2.0.0
    616615 */
    617616function xprofile_override_user_fullnames() {
     
    634633 * Setup the avatar upload directory for a user.
    635634 *
    636  * @since BuddyPress (1.0.0)
     635 * @since 1.0.0
    637636 *
    638637 * @package BuddyPress Core
     
    664663     * Filters the avatar upload directory for a user.
    665664     *
    666      * @since BuddyPress (1.1.0)
     665     * @since 1.1.0
    667666     *
    668667     * @param array $value Array containing the path, URL, and other helpful settings.
     
    681680 * When search_terms are passed to BP_User_Query, search against xprofile fields.
    682681 *
    683  * @since BuddyPress (2.0.0)
     682 * @since 2.0.0
    684683 *
    685684 * @param array $sql Clauses in the user_id SQL query.
     
    771770 * Syncs the standard built in WordPress profile data to XProfile.
    772771 *
    773  * @since BuddyPress (1.2.4)
     772 * @since 1.2.4
    774773 * @package BuddyPress Core
    775774 */
     
    909908 * Add a piece of xprofile metadata.
    910909 *
    911  * @since BuddyPress (2.0.0)
     910 * @since 2.0.0
    912911 *
    913912 * @param int $object_id ID of the object the metadata belongs to.
     
    945944 * Return the field ID for the Full Name xprofile field.
    946945 *
    947  * @since BuddyPress (2.0.0)
     946 * @since 2.0.0
    948947 *
    949948 * @return int Field ID.
     
    968967 *
    969968 * @package BuddyPress
    970  * @since BuddyPress (1.5.0)
     969 * @since 1.5.0
    971970 *
    972971 * @return string The field name
     
    977976     * Filters the field name for the Full Name xprofile field.
    978977     *
    979      * @since BuddyPress (1.5.0)
     978     * @since 1.5.0
    980979     *
    981980     * @param string BP_XPROFILE_FULLNAME_FIELD_NAME Full name field constant.
     
    994993     * Filters the visibility levels out of the $bp global.
    995994     *
    996      * @since BuddyPress (1.6.0)
     995     * @since 1.6.0
    997996     *
    998997     * @param array $visibility_levels Array of visibility levels.
     
    10091008 * be excluded from the profile loop.
    10101009 *
    1011  * @since BuddyPress (1.6.0)
     1010 * @since 1.6.0
    10121011 * @see BP_XProfile_Group::get()
    10131012 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels,
     
    10381037     * Filters the ids of fields that are hidden for this displayed/loggedin user pair.
    10391038     *
    1040      * @since BuddyPress (1.6.0)
     1039     * @since 1.6.0
    10411040     *
    10421041     * @param array $hidden_fields     Array of hidden fields for the displayed/logged in user.
     
    10561055 * that should be hidden for the current user pair.
    10571056 *
    1058  * @since BuddyPress (1.8.2)
     1057 * @since 1.8.2
    10591058 * @see bp_xprofile_get_hidden_fields_for_user()
    10601059 *
     
    10901089     * Filters the visibility levels that should be hidden for this user pair.
    10911090     *
    1092      * @since BuddyPress (2.0.0)
     1091     * @since 2.0.0
    10931092     *
    10941093     * @param array $hidden_fields     Array of hidden fields for the displayed/logged in user.
     
    11021101 * Fetch an array of the xprofile fields that a given user has marked with certain visibility levels
    11031102 *
    1104  * @since BuddyPress (1.6.0)
     1103 * @since 1.6.0
    11051104 * @see bp_xprofile_get_hidden_fields_for_user()
    11061105 *
Note: See TracChangeset for help on using the changeset viewer.