Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/11/2013 12:52:44 AM (12 years ago)
Author:
boonebgorges
Message:

Improve inline docs in bp-friends component. See #5022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-loader.php

    r7494 r7558  
    33 * BuddyPress Friends Streams Loader
    44 *
    5  * The friends component is for users to create relationships with each other
     5 * The friends component is for users to create relationships with each other.
    66 *
    77 * @package BuddyPress
    8  * @subpackage Friends Core
     8 * @subpackage Friends
    99 */
    1010
     
    1515
    1616    /**
    17      * Start the friends component creation process
    18      *
    19      * @since BuddyPress (1.5)
     17     * Start the friends component creation process.
     18     *
     19     * @since BuddyPress (1.5.0)
    2020     */
    2121    function __construct() {
     
    3131
    3232    /**
    33      * Include files
     33     * Include bp-friends files.
     34     *
     35     * @see BP_Component::includes() for description of parameters.
     36     *
     37     * @param array $includes See {@link BP_Component::includes()}.
    3438     */
    3539    public function includes( $includes = array() ) {
     
    5054
    5155    /**
    52      * Setup globals
     56     * Set up bp-friends global settings.
    5357     *
    5458     * The BP_FRIENDS_SLUG constant is deprecated, and only used here for
    5559     * backwards compatibility.
    5660     *
    57      * @since BuddyPress (1.5)
     61     * @since BuddyPress (1.5.0)
     62     *
     63     * @see BP_Component::setup_globals() for description of parameters.
     64     *
     65     * @param array $args See {@link BP_Component::setup_globals()}.
    5866     */
    5967    public function setup_globals( $args = array() ) {
     
    9098
    9199    /**
    92      * Setup BuddyBar navigation
     100     * Set up component navigation.
     101     *
     102     * @since BuddyPress (1.5.0)
     103     *
     104     * @see BP_Component::setup_nav() for a description of arguments.
     105     *
     106     * @param array $main_nav Optional. See BP_Component::setup_nav() for
     107     *        description.
     108     * @param array $sub_nav Optional. See BP_Component::setup_nav() for
     109     *        description.
    93110     */
    94111    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
     
    141158
    142159    /**
    143      * Set up the Toolbar
     160     * Set up bp-friends integration with the WordPress admin bar.
     161     *
     162     * @since BuddyPress (1.5.0)
     163     *
     164     * @see BP_Component::setup_admin_bar() for a description of arguments.
     165     *
     166     * @param array $wp_admin_nav See BP_Component::setup_admin_bar()
     167     *        for description.
    144168     */
    145169    public function setup_admin_bar( $wp_admin_nav = array() ) {
     
    192216
    193217    /**
    194      * Sets up the title for pages and <title>
     218     * Set up the title for pages and <title>.
    195219     */
    196220    function setup_title() {
     
    215239}
    216240
     241/**
     242 * Set up the bp-forums component.
     243 */
    217244function bp_setup_friends() {
    218245    buddypress()->friends = new BP_Friends_Component();
Note: See TracChangeset for help on using the changeset viewer.