Changeset 7228 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 06/19/2013 09:41:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7204 r7228 88 88 * Format numbers the BuddyPress way 89 89 * 90 * @param str$number90 * @param int $number 91 91 * @param bool $decimals 92 * @return str 92 * @return string 93 93 */ 94 94 function bp_core_number_format( $number, $decimals = false ) { … … 245 245 * @since BuddyPress (1.5) 246 246 * 247 * @return obj $pagesPage names, IDs, and slugs247 * @return object Page names, IDs, and slugs 248 248 */ 249 249 function bp_core_get_directory_pages() { … … 394 394 * @since BuddyPress (1.5) 395 395 * 396 * @param str $root_slug The root slug, which comes from $bp->pages->[component]->slug397 * @return str $slug The short slug for use in the middle of URLs396 * @param string $root_slug The root slug, which comes from $bp->pages->[component]->slug 397 * @return string The short slug for use in the middle of URLs 398 398 */ 399 399 function bp_core_component_slug_from_root_slug( $root_slug ) { … … 410 410 * 411 411 * @global $bp BuddyPress global settings 412 * @param $slug strThe slug of the component412 * @param string $slug The slug of the component 413 413 */ 414 414 function bp_core_add_root_component( $slug ) { … … 470 470 * @package BuddyPress Core 471 471 * @uses get_blog_option() WordPress function to fetch blog meta. 472 * @return $domainThe domain URL for the blog.472 * @return string The domain URL for the blog. 473 473 */ 474 474 function bp_core_get_root_domain() { … … 505 505 * 506 506 * @package BuddyPress Core 507 * @return The referrer URL507 * @return string The referrer URL 508 508 */ 509 509 function bp_core_referrer() { … … 578 578 * @uses apply_filters() Filter 'bp_core_time_since_pre' to bypass BP's calculations 579 579 * @uses apply_filters() Filter 'bp_core_time_since' to modify BP's calculations 580 * @param $older_date intUnix timestamp of date you want to calculate the time since for581 * @param $newer_date intUnix timestamp of date to compare older date to. Default false (current time).582 * @return str The time since.580 * @param int $older_date Unix timestamp of date you want to calculate the time since for 581 * @param int $newer_date Unix timestamp of date to compare older date to. Default false (current time). 582 * @return string The time since. 583 583 */ 584 584 function bp_core_time_since( $older_date, $newer_date = false ) { … … 734 734 * 735 735 * @global BuddyPress $bp The one true BuddyPress instance 736 * @param str $message Feedback to give to user737 * @param str $type updated|success|error|warning736 * @param string $message Feedback to give to user 737 * @param string $type updated|success|error|warning 738 738 */ 739 739 function bp_core_add_message( $message, $type = '' ) { … … 855 855 * 856 856 * @package BuddyPress Core 857 * @param last_activity_date The date of last activity. 858 * @param $before The text to prepend to the activity time since figure. 859 * @param $after The text to append to the activity time since figure. 857 * @param string $last_activity_date The date of last activity. 858 * @param string $string 860 859 * @uses bp_core_time_since() This function will return an English representation of the time elapsed. 861 860 */ … … 889 888 * 890 889 * @uses apply_filters() Filter bp_get_user_meta_key to modify keys individually 891 * @param str $key892 * @return str $key890 * @param string $key 891 * @return string $key 893 892 */ 894 893 function bp_get_user_meta_key( $key = false ) { … … 1212 1211 * @global BuddyPress $bp The one true BuddyPress instance 1213 1212 * @param bool $is_directory 1214 * @param str $component1213 * @param string $component 1215 1214 */ 1216 1215 function bp_update_is_directory( $is_directory = false, $component = '' ) { … … 1228 1227 * @global BuddyPress $bp The one true BuddyPress instance 1229 1228 * @param bool $is_item_admin 1230 * @param str $component1229 * @param string $component 1231 1230 */ 1232 1231 function bp_update_is_item_admin( $is_item_admin = false, $component = '' ) { … … 1244 1243 * @global BuddyPress $bp The one true BuddyPress instance 1245 1244 * @param bool $is_item_mod 1246 * @param str $component1245 * @param string $component 1247 1246 */ 1248 1247 function bp_update_is_item_mod( $is_item_mod = false, $component = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.