Skip to:
Content

BuddyPress.org

Changeset 7317


Ignore:
Timestamp:
07/26/2013 06:13:54 PM (13 years ago)
Author:
boonebgorges
Message:

Explicit visibility and static declarations in bp-blogs-classes.php

See #3886, #5108

File:
1 edited

Legend:

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

    r7042 r7317  
    1919 */
    2020class BP_Blogs_Blog {
    21         var $id;
    22         var $user_id;
    23         var $blog_id;
    24 
    25         function __construct( $id = null ) {
     21        public $id;
     22        public $user_id;
     23        public $blog_id;
     24
     25        public function __construct( $id = null ) {
    2626                if ( !empty( $id ) ) {
    2727                        $this->id = $id;
     
    3030        }
    3131
    32         function populate() {
     32        public function populate() {
    3333                global $wpdb, $bp;
    3434
     
    3939        }
    4040
    41         function save() {
     41        public function save() {
    4242                global $wpdb, $bp;
    4343
     
    7474        }
    7575
    76         function exists() {
     76        public function exists() {
    7777                global $bp, $wpdb;
    7878
     
    8282        /* Static Functions */
    8383
    84         function get( $type, $limit = false, $page = false, $user_id = 0, $search_terms = false ) {
     84        public static function get( $type, $limit = false, $page = false, $user_id = 0, $search_terms = false ) {
    8585                global $bp, $wpdb;
    8686
     
    128128        }
    129129
    130         function delete_blog_for_all( $blog_id ) {
     130        public static function delete_blog_for_all( $blog_id ) {
    131131                global $wpdb, $bp;
    132132
     
    135135        }
    136136
    137         function delete_blog_for_user( $blog_id, $user_id = null ) {
     137        public static function delete_blog_for_user( $blog_id, $user_id = null ) {
    138138                global $wpdb, $bp;
    139139
     
    144144        }
    145145
    146         function delete_blogs_for_user( $user_id = null ) {
     146        public static function delete_blogs_for_user( $user_id = null ) {
    147147                global $wpdb, $bp;
    148148
     
    153153        }
    154154
    155         function get_blogs_for_user( $user_id = 0, $show_hidden = false ) {
     155        public static function get_blogs_for_user( $user_id = 0, $show_hidden = false ) {
    156156                global $bp, $wpdb;
    157157
     
    179179        }
    180180
    181         function get_blog_ids_for_user( $user_id = 0 ) {
     181        public static function get_blog_ids_for_user( $user_id = 0 ) {
    182182                global $bp, $wpdb;
    183183
     
    188188        }
    189189
    190         function is_recorded( $blog_id ) {
     190        public static function is_recorded( $blog_id ) {
    191191                global $bp, $wpdb;
    192192
     
    194194        }
    195195
    196         function total_blog_count_for_user( $user_id = null ) {
     196        public static function total_blog_count_for_user( $user_id = null ) {
    197197                global $bp, $wpdb;
    198198
     
    208208        }
    209209
    210         function search_blogs( $filter, $limit = null, $page = null ) {
     210        public static function search_blogs( $filter, $limit = null, $page = null ) {
    211211                global $wpdb, $bp;
    212212
     
    227227        }
    228228
    229         function get_all( $limit = null, $page = null ) {
     229        public static function get_all( $limit = null, $page = null ) {
    230230                global $bp, $wpdb;
    231231
     
    239239        }
    240240
    241         function get_by_letter( $letter, $limit = null, $page = null ) {
     241        public static function get_by_letter( $letter, $limit = null, $page = null ) {
    242242                global $bp, $wpdb;
    243243
     
    257257        }
    258258
    259         function get_blog_extras( &$paged_blogs, &$blog_ids, $type = false ) {
     259        public static function get_blog_extras( &$paged_blogs, &$blog_ids, $type = false ) {
    260260                global $bp, $wpdb;
    261261
     
    311311        }
    312312
    313         function is_hidden( $blog_id ) {
     313        public static function is_hidden( $blog_id ) {
    314314                global $wpdb;
    315315
Note: See TracChangeset for help on using the changeset viewer.