Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2015 01:58:52 AM (11 years ago)
Author:
tw2113
Message:

More documentation cleanup for the Members component.

See #6402.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/admin/bp-members-admin-classes.php

    r10248 r10322  
    11<?php
    22/**
    3  * BuddyPress Members List Classes
     3 * BuddyPress Members List Classes.
    44 *
    55 * @package BuddyPress
    … …  
    8989         * @since 2.0.0
    9090         *
    91          * @uses WP_Users_List_Table::get_views() to get the users views
     91         * @uses WP_Users_List_Table::get_views() to get the users views.
    9292         */
    9393        public function get_views() {
    9494                $views = parent::get_views();
    9595
    96                 // Remove the 'current' class from the 'All' link
     96                // Remove the 'current' class from the 'All' link.
    9797                $views['all']        = str_replace( 'class="current"', '', $views['all'] );
    9898                $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) );
    … …  
    109109         * @since 2.0.0
    110110         *
    111          * @param array $which
     111         * @param array $which Current table nav item.
    112112         */
    113113        public function extra_tablenav( $which ) {
    … …  
    172172                        $link = false;
    173173
    174                         // Specific case when BuddyPress is not network activated
     174                        // Specific case when BuddyPress is not network activated.
    175175                        if ( is_multisite() && current_user_can( 'manage_network_users') ) {
    176176                                $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( network_admin_url( 'settings.php'       ) ), esc_html__( 'Edit settings', 'buddypress' ) );
    … …  
    206206                foreach ( $this->items as $userid => $signup_object ) {
    207207
    208                         // Avoid a notice error appearing since 4.3.0
     208                        // Avoid a notice error appearing since 4.3.0.
    209209                        if ( isset( $signup_object->id ) ) {
    210210                                $signup_object->ID = $signup_object->id;
    … …  
    227227         * @param string      $role          Role to be assigned to user.
    228228         * @param int         $numposts      Numper of posts.
    229          *
    230          * @return string
     229         * @return void
    231230         */
    232231        public function single_row( $signup_object = null, $style = '', $role = '', $numposts = 0 ) {
    … …  
    260259                $avatar = get_avatar( $signup_object->user_email, 32 );
    261260
    262                 // Activation email link
     261                // Activation email link.
    263262                $email_link = add_query_arg(
    264263                        array(
    … …  
    270269                );
    271270
    272                 // Activate link
     271                // Activate link.
    273272                $activate_link = add_query_arg(
    274273                        array(
    … …  
    280279                );
    281280
    282                 // Delete link
     281                // Delete link.
    283282                $delete_link = add_query_arg(
    284283                        array(
    … …  
    364363         *
    365364         * @param object $signup_object Signup object instance.
    366          *
    367          * @return int
    368365         */
    369366        public function column_count_sent( $signup_object = null ) {
    … …  
    378375         * @param object|null $signup_object The signup data object.
    379376         * @param string      $column_name   The column name.
    380          *
    381377         * @return string
    382378         */
    … …  
    398394
    399395if ( class_exists( 'WP_MS_Users_List_Table' ) ) :
     396
    400397/**
    401398 * List table class for signups network admin page.
    … …  
    415412
    416413        /**
    417          * Constructor
     414         * Constructor.
    418415         *
    419416         * @since 2.0.0
    … …  
    481478                $views = parent::get_views();
    482479
    483                 // Remove the 'current' class from the 'All' link
     480                // Remove the 'current' class from the 'All' link.
    484481                $views['all']        = str_replace( 'class="current"', '', $views['all'] );
    485482                $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) );
    … …  
    574571                foreach ( $this->items as $userid => $signup_object ) {
    575572
    576                         // Avoid a notice error appearing since 4.3.0
     573                        // Avoid a notice error appearing since 4.3.0.
    577574                        if ( isset( $signup_object->id ) ) {
    578575                                $signup_object->ID = $signup_object->id;
    … …  
    608605         * @param string $column_name   Current column name.
    609606         * @param string $primary       Primary column name.
    610          *
    611607         * @return string
    612608         */
    … …  
    639635                $avatar = get_avatar( $signup_object->user_email, 32 );
    640636
    641                 // Activation email link
     637                // Activation email link.
    642638                $email_link = add_query_arg(
    643639                        array(
    … …  
    649645                );
    650646
    651                 // Activate link
     647                // Activate link.
    652648                $activate_link = add_query_arg(
    653649                        array(
    … …  
    659655                );
    660656
    661                 // Delete link
     657                // Delete link.
    662658                $delete_link = add_query_arg(
    663659                        array(
    … …  
    764760         * @param object|null $signup_object The signup data object.
    765761         * @param string      $column_name   The column name.
    766          *
    767762         * @return string
    768763         */
Note: See TracChangeset for help on using the changeset viewer.