Changeset 10010
- Timestamp:
- 07/11/2015 11:00:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-loader.php
r10000 r10010 1 1 <?php 2 2 /** 3 * The BuddyPress Plugin 3 * The BuddyPress Plugin. 4 4 * 5 5 * BuddyPress is social networking software with a twist from the creators of WordPress. … … 28 28 if ( !class_exists( 'BuddyPress' ) ) : 29 29 /** 30 * Main BuddyPress Class 30 * Main BuddyPress Class. 31 31 * 32 32 * Tap tap tap... Is this thing on? … … 113 113 * Main BuddyPress Instance. 114 114 * 115 * BuddyPress is great 116 * Please load it only one time 117 * For this, we thank you 115 * BuddyPress is great. 116 * Please load it only one time. 117 * For this, we thank you. 118 118 * 119 119 * Insures that only one instance of BuddyPress exists in memory at any … … 182 182 * 183 183 * @since BuddyPress (1.7.0) 184 * 185 * @param string $key Key to check the set status for. 186 * 187 * @return bool 184 188 */ 185 189 public function __isset( $key ) { return isset( $this->data[$key] ); } … … 189 193 * 190 194 * @since BuddyPress (1.7.0) 195 * 196 * @param string $key Key to return the value for. 197 * 198 * @return mixed 191 199 */ 192 200 public function __get( $key ) { return isset( $this->data[$key] ) ? $this->data[$key] : null; } … … 196 204 * 197 205 * @since BuddyPress (1.7.0) 206 * 207 * @param string $key Key to set a value for. 208 * @param mixed $value Value to set. 198 209 */ 199 210 public function __set( $key, $value ) { $this->data[$key] = $value; } … … 203 214 * 204 215 * @since BuddyPress (1.7.0) 216 * 217 * @param string $key Key to unset a value for. 205 218 */ 206 219 public function __unset( $key ) { if ( isset( $this->data[$key] ) ) unset( $this->data[$key] ); } … … 210 223 * 211 224 * @since BuddyPress (1.7.0) 225 * 226 * @param string $name 227 * @param array $args 228 * 229 * @return null 212 230 */ 213 231 public function __call( $name = '', $args = array() ) { unset( $name, $args ); return null; } … … 320 338 * @since BuddyPress (2.0.0) 321 339 * 322 * @ paramconstant BP_IGNORE_DEPRECATED Whether or not to ignore deprecated functionality.340 * @const constant BP_IGNORE_DEPRECATED Whether or not to ignore deprecated functionality. 323 341 */ 324 342 $this->load_deprecated = ! apply_filters( 'bp_ignore_deprecated', BP_IGNORE_DEPRECATED ); … … 327 345 328 346 /** 329 * @var string The primary toolbar ID 347 * @var string The primary toolbar ID. 330 348 */ 331 349 $this->my_account_menu_id = ''; … … 347 365 348 366 /** 349 * @var string Name of the current BuddyPress component (primary) 367 * @var string Name of the current BuddyPress component (primary). 350 368 */ 351 369 $this->current_component = ''; 352 370 353 371 /** 354 * @var string Name of the current BuddyPress item (secondary) 372 * @var string Name of the current BuddyPress item (secondary). 355 373 */ 356 374 $this->current_item = ''; 357 375 358 376 /** 359 * @var string Name of the current BuddyPress action (tertiary) 377 * @var string Name of the current BuddyPress action (tertiary). 360 378 */ 361 379 $this->current_action = ''; 362 380 363 381 /** 364 * @var bool Displaying custom 2nd level navigation menu (I.E a group) 382 * @var bool Displaying custom 2nd level navigation menu (I.E a group). 365 383 */ 366 384 $this->is_single_item = false; … … 368 386 /** Root **************************************************************/ 369 387 370 // BuddyPress Root blog ID371 388 /** 372 389 * Filters the BuddyPress Root blog ID. … … 374 391 * @since BuddyPress (1.5.0) 375 392 * 376 * @ paramconstant BP_ROOT_BLOG BuddyPress Root blog ID.393 * @const constant BP_ROOT_BLOG BuddyPress Root blog ID. 377 394 */ 378 395 $this->root_blog_id = (int) apply_filters( 'bp_get_root_blog_id', BP_ROOT_BLOG ); … … 653 670 654 671 /** 655 * Hook BuddyPress early onto the 'plugins_loaded' action. .672 * Hook BuddyPress early onto the 'plugins_loaded' action. 656 673 * 657 674 * This gives all other plugins the chance to load before BuddyPress, to get
Note: See TracChangeset
for help on using the changeset viewer.