Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2013 09:41:08 PM (12 years ago)
Author:
djpaul
Message:

Quick audit of existing phpDoc @param, @return, and @since parameters. Fixes #5031

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r7204 r7228  
    8888 * Format numbers the BuddyPress way
    8989 *
    90  * @param str $number
     90 * @param int $number
    9191 * @param bool $decimals
    92  * @return str
     92 * @return string
    9393 */
    9494function bp_core_number_format( $number, $decimals = false ) {
     
    245245 * @since BuddyPress (1.5)
    246246 *
    247  * @return obj $pages Page names, IDs, and slugs
     247 * @return object Page names, IDs, and slugs
    248248 */
    249249function bp_core_get_directory_pages() {
     
    394394 * @since BuddyPress (1.5)
    395395 *
    396  * @param str $root_slug The root slug, which comes from $bp->pages->[component]->slug
    397  * @return str $slug The short slug for use in the middle of URLs
     396 * @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
    398398 */
    399399function bp_core_component_slug_from_root_slug( $root_slug ) {
     
    410410 *
    411411 * @global $bp BuddyPress global settings
    412  * @param $slug str The slug of the component
     412 * @param string $slug The slug of the component
    413413 */
    414414function bp_core_add_root_component( $slug ) {
     
    470470 * @package BuddyPress Core
    471471 * @uses get_blog_option() WordPress function to fetch blog meta.
    472  * @return $domain The domain URL for the blog.
     472 * @return string The domain URL for the blog.
    473473 */
    474474function bp_core_get_root_domain() {
     
    505505 *
    506506 * @package BuddyPress Core
    507  * @return The referrer URL
     507 * @return string The referrer URL
    508508 */
    509509function bp_core_referrer() {
     
    578578 * @uses apply_filters() Filter 'bp_core_time_since_pre' to bypass BP's calculations
    579579 * @uses apply_filters() Filter 'bp_core_time_since' to modify BP's calculations
    580  * @param $older_date int Unix timestamp of date you want to calculate the time since for
    581  * @param $newer_date int Unix 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.
    583583 */
    584584function bp_core_time_since( $older_date, $newer_date = false ) {
     
    734734 *
    735735 * @global BuddyPress $bp The one true BuddyPress instance
    736  * @param str $message Feedback to give to user
    737  * @param str $type updated|success|error|warning
     736 * @param string $message Feedback to give to user
     737 * @param string $type updated|success|error|warning
    738738 */
    739739function bp_core_add_message( $message, $type = '' ) {
     
    855855 *
    856856 * @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
    860859 * @uses bp_core_time_since() This function will return an English representation of the time elapsed.
    861860 */
     
    889888 *
    890889 * @uses apply_filters() Filter bp_get_user_meta_key to modify keys individually
    891  * @param str $key
    892  * @return str $key
     890 * @param string $key
     891 * @return string $key
    893892 */
    894893function bp_get_user_meta_key( $key = false ) {
     
    12121211 * @global BuddyPress $bp The one true BuddyPress instance
    12131212 * @param bool $is_directory
    1214  * @param str $component
     1213 * @param string $component
    12151214 */
    12161215function bp_update_is_directory( $is_directory = false, $component = '' ) {
     
    12281227 * @global BuddyPress $bp The one true BuddyPress instance
    12291228 * @param bool $is_item_admin
    1230  * @param str $component
     1229 * @param string $component
    12311230 */
    12321231function bp_update_is_item_admin( $is_item_admin = false, $component = '' ) {
     
    12441243 * @global BuddyPress $bp The one true BuddyPress instance
    12451244 * @param bool $is_item_mod
    1246  * @param str $component
     1245 * @param string $component
    12471246 */
    12481247function bp_update_is_item_mod( $is_item_mod = false, $component = '' ) {
Note: See TracChangeset for help on using the changeset viewer.