Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/07/2014 11:47:51 PM (10 years ago)
Author:
boonebgorges
Message:

Improve inline documentation in bp-messages.

See #5022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-loader.php

    r8223 r8481  
    1313if ( !defined( 'ABSPATH' ) ) exit;
    1414
     15/**
     16 * Implementation of BP_Component for the Messages component.
     17 *
     18 * @since BuddyPress (1.5.0)
     19 */
    1520class BP_Messages_Component extends BP_Component {
    1621    /**
     
    2429
    2530    /**
    26      * Start the messages component creation process
    27      *
    28      * @since BuddyPress (1.5)
     31     * Start the messages component creation process.
     32     *
     33     * @since BuddyPress (1.5.0)
    2934     */
    3035    public function __construct() {
     
    4045
    4146    /**
    42      * Include files
     47     * Include files.
     48     *
     49     * @since BuddyPress (1.5.0)
     50     *
     51     * @param array $includes See {BP_Component::includes()} for details.
    4352     */
    4453    public function includes( $includes = array() ) {
     
    6271
    6372    /**
    64      * Setup globals
     73     * Set up globals for the Messages component.
    6574     *
    6675     * The BP_MESSAGES_SLUG constant is deprecated, and only used here for
    6776     * backwards compatibility.
    6877     *
    69      * @since BuddyPress (1.5)
     78     * @since BuddyPress (1.5.0)
     79     *
     80     * @param array $args Not used.
    7081     */
    7182    public function setup_globals( $args = array() ) {
     
    99110
    100111    /**
    101      * Setup BuddyBar navigation
     112     * Set up navigation for user pages.
     113     *
     114     * @param array $main_nav See {BP_Component::setup_nav()} for details.
     115     * @param array $sub_nav See {BP_Component::setup_nav()} for details.
    102116     */
    103117    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
     
    182196
    183197    /**
    184      * Set up the Toolbar
     198     * Set up the Toolbar.
     199     *
     200     * @param array $wp_admin_nav See {BP_Component::setup_admin_bar()}
     201     *        for details.
    185202     */
    186203    public function setup_admin_bar( $wp_admin_nav = array() ) {
     
    251268
    252269    /**
    253      * Sets up the title for pages and <title>
     270     * Set up the title for pages and <title>.
    254271     */
    255272    public function setup_title() {
     
    273290}
    274291
     292/**
     293 * Bootstrap the Messages component.
     294 */
    275295function bp_setup_messages() {
    276296    buddypress()->messages = new BP_Messages_Component();
Note: See TracChangeset for help on using the changeset viewer.