Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2012 01:16:40 PM (12 years ago)
Author:
boonebgorges
Message:

Removes static and access declarations on methods in bp-friends-classes.php

See #4274 and r6119

File:
1 edited

Legend:

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

    r5931 r6120  
    1717    var $friend;
    1818
    19     public function __construct( $id = null, $is_request = false, $populate_friend_details = true ) {
     19    function __construct( $id = null, $is_request = false, $populate_friend_details = true ) {
    2020        $this->is_request = $is_request;
    2121
     
    2727    }
    2828
    29     private function populate() {
     29    function populate() {
    3030        global $wpdb, $bp;
    3131
     
    4747    }
    4848
    49     public function save() {
     49    function save() {
    5050        global $wpdb, $bp;
    5151
     
    7373    }
    7474
    75     public function delete() {
     75    function delete() {
    7676        global $wpdb, $bp;
    7777
     
    8181    /** Static Methods ********************************************************/
    8282
    83     public static function get_friend_user_ids( $user_id, $friend_requests_only = false, $assoc_arr = false ) {
     83    function get_friend_user_ids( $user_id, $friend_requests_only = false, $assoc_arr = false ) {
    8484        global $wpdb, $bp;
    8585
     
    106106    }
    107107
    108     public static function get_friendship_id( $user_id, $friend_id ) {
     108    function get_friendship_id( $user_id, $friend_id ) {
    109109        global $wpdb, $bp;
    110110
     
    112112    }
    113113
    114     public static function get_friendship_request_user_ids( $user_id ) {
     114    function get_friendship_request_user_ids( $user_id ) {
    115115        global $wpdb, $bp;
    116116
     
    118118    }
    119119
    120     public static function total_friend_count( $user_id = 0 ) {
     120    function total_friend_count( $user_id = 0 ) {
    121121        global $wpdb, $bp;
    122122
     
    137137    }
    138138
    139     public static function search_friends( $filter, $user_id, $limit = null, $page = null ) {
     139    function search_friends( $filter, $user_id, $limit = null, $page = null ) {
    140140        global $wpdb, $bp;
    141141
     
    177177    }
    178178
    179     public static function check_is_friend( $loggedin_userid, $possible_friend_userid ) {
     179    function check_is_friend( $loggedin_userid, $possible_friend_userid ) {
    180180        global $wpdb, $bp;
    181181
     
    196196    }
    197197
    198     public static function get_bulk_last_active( $user_ids ) {
     198    function get_bulk_last_active( $user_ids ) {
    199199        global $wpdb;
    200200
     
    202202    }
    203203
    204     public static function accept($friendship_id) {
     204    function accept($friendship_id) {
    205205        global $wpdb, $bp;
    206206
     
    208208    }
    209209
    210     public static function withdraw($friendship_id) {
     210    function withdraw($friendship_id) {
    211211        global $wpdb, $bp;
    212212
     
    214214    }
    215215
    216     public static function reject($friendship_id) {
     216    function reject($friendship_id) {
    217217        global $wpdb, $bp;
    218218
     
    220220    }
    221221
    222     public static function search_users( $filter, $user_id, $limit = null, $page = null ) {
     222    function search_users( $filter, $user_id, $limit = null, $page = null ) {
    223223        global $wpdb;
    224224
     
    246246    }
    247247
    248     public static function search_users_count( $filter ) {
     248    function search_users_count( $filter ) {
    249249        global $wpdb, $bp;
    250250
     
    269269    }
    270270
    271     public static function sort_by_name( $user_ids ) {
     271    function sort_by_name( $user_ids ) {
    272272        global $wpdb, $bp;
    273273
     
    278278    }
    279279
    280     public static function get_random_friends( $user_id, $total_friends = 5 ) {
     280    function get_random_friends( $user_id, $total_friends = 5 ) {
    281281        global $wpdb, $bp;
    282282
     
    296296    }
    297297
    298     public static function get_invitable_friend_count( $user_id, $group_id ) {
     298    function get_invitable_friend_count( $user_id, $group_id ) {
    299299
    300300        // Setup some data we'll use below
     
    323323    }
    324324
    325     public static function get_user_ids_for_friendship( $friendship_id ) {
     325    function get_user_ids_for_friendship( $friendship_id ) {
    326326        global $wpdb, $bp;
    327327
     
    329329    }
    330330
    331     public static function delete_all_for_user( $user_id ) {
     331    function delete_all_for_user( $user_id ) {
    332332        global $wpdb, $bp;
    333333
Note: See TracChangeset for help on using the changeset viewer.