Changeset 7317
- Timestamp:
- 07/26/2013 06:13:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-classes.php
r7042 r7317 19 19 */ 20 20 class 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 ) { 26 26 if ( !empty( $id ) ) { 27 27 $this->id = $id; … … 30 30 } 31 31 32 function populate() {32 public function populate() { 33 33 global $wpdb, $bp; 34 34 … … 39 39 } 40 40 41 function save() {41 public function save() { 42 42 global $wpdb, $bp; 43 43 … … 74 74 } 75 75 76 function exists() {76 public function exists() { 77 77 global $bp, $wpdb; 78 78 … … 82 82 /* Static Functions */ 83 83 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 ) { 85 85 global $bp, $wpdb; 86 86 … … 128 128 } 129 129 130 function delete_blog_for_all( $blog_id ) {130 public static function delete_blog_for_all( $blog_id ) { 131 131 global $wpdb, $bp; 132 132 … … 135 135 } 136 136 137 function delete_blog_for_user( $blog_id, $user_id = null ) {137 public static function delete_blog_for_user( $blog_id, $user_id = null ) { 138 138 global $wpdb, $bp; 139 139 … … 144 144 } 145 145 146 function delete_blogs_for_user( $user_id = null ) {146 public static function delete_blogs_for_user( $user_id = null ) { 147 147 global $wpdb, $bp; 148 148 … … 153 153 } 154 154 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 ) { 156 156 global $bp, $wpdb; 157 157 … … 179 179 } 180 180 181 function get_blog_ids_for_user( $user_id = 0 ) {181 public static function get_blog_ids_for_user( $user_id = 0 ) { 182 182 global $bp, $wpdb; 183 183 … … 188 188 } 189 189 190 function is_recorded( $blog_id ) {190 public static function is_recorded( $blog_id ) { 191 191 global $bp, $wpdb; 192 192 … … 194 194 } 195 195 196 function total_blog_count_for_user( $user_id = null ) {196 public static function total_blog_count_for_user( $user_id = null ) { 197 197 global $bp, $wpdb; 198 198 … … 208 208 } 209 209 210 function search_blogs( $filter, $limit = null, $page = null ) {210 public static function search_blogs( $filter, $limit = null, $page = null ) { 211 211 global $wpdb, $bp; 212 212 … … 227 227 } 228 228 229 function get_all( $limit = null, $page = null ) {229 public static function get_all( $limit = null, $page = null ) { 230 230 global $bp, $wpdb; 231 231 … … 239 239 } 240 240 241 function get_by_letter( $letter, $limit = null, $page = null ) {241 public static function get_by_letter( $letter, $limit = null, $page = null ) { 242 242 global $bp, $wpdb; 243 243 … … 257 257 } 258 258 259 function get_blog_extras( &$paged_blogs, &$blog_ids, $type = false ) {259 public static function get_blog_extras( &$paged_blogs, &$blog_ids, $type = false ) { 260 260 global $bp, $wpdb; 261 261 … … 311 311 } 312 312 313 function is_hidden( $blog_id ) {313 public static function is_hidden( $blog_id ) { 314 314 global $wpdb; 315 315
Note: See TracChangeset
for help on using the changeset viewer.