Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2011 12:30:01 PM (14 years ago)
Author:
boonebgorges
Message:

Adds PHPDoc throughout the activity component. References #2345. Turbo props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-notifications.php

    r4961 r5109  
    11<?php
     2
     3/**
     4 * BuddyPress Activity Notifications
     5 *
     6 * @package BuddyPress
     7 * @subpackage ActivityNotifications
     8 */
     9
    210// Exit if accessed directly
    311if ( !defined( 'ABSPATH' ) ) exit;
     
    614 * Sends an email notification and a BP notification when someone mentions you in an update
    715 *
    8  * @package BuddyPress Activity
    9  * @param str $content The content of the activity update
    10  * @param int $poster_user_id The unique user_id of the user who sent the update
     16 * @since 1.2.0
     17 *
    1118 * @param int $activity_id The id of the activity update
     19 * @param int $receiver_user_id The unique user_id of the user who is receiving the update
     20 *
     21 * @global object $bp BuddyPress global settings
     22 * @uses bp_core_add_notification()
     23 * @uses bp_get_user_meta()
     24 * @uses bp_core_get_user_displayname()
     25 * @uses bp_activity_get_permalink()
     26 * @uses bp_core_get_user_domain()
     27 * @uses bp_get_settings_slug()
     28 * @uses bp_activity_filter_kses()
     29 * @uses bp_core_get_core_userdata()
     30 * @uses wp_specialchars_decode()
     31 * @uses get_blog_option()
     32 * @uses bp_is_active()
     33 * @uses bp_is_group()
     34 * @uses bp_get_current_group_name()
     35 * @uses apply_filters() To call the 'bp_activity_at_message_notification_to' hook
     36 * @uses apply_filters() To call the 'bp_activity_at_message_notification_subject' hook
     37 * @uses apply_filters() To call the 'bp_activity_at_message_notification_message' hook
     38 * @uses wp_mail()
     39 * @uses do_action() To call the 'bp_activity_sent_mention_email' hook
    1240 */
    1341function bp_activity_at_message_notification( $activity_id, $receiver_user_id ) {
     
    73101}
    74102
     103/**
     104 * Sends an email notification and a BP notification when someone mentions you in an update
     105 *
     106 * @since 1.2.0
     107 *
     108 * @param int $comment_id The comment id
     109 * @param int $commenter_id The unique user_id of the user who posted the comment
     110 * @param array $params {@link bp_activity_new_comment()}
     111 *
     112 * @global object $bp BuddyPress global settings
     113 * @uses bp_get_user_meta()
     114 * @uses bp_core_get_user_displayname()
     115 * @uses bp_activity_get_permalink()
     116 * @uses bp_core_get_user_domain()
     117 * @uses bp_get_settings_slug()
     118 * @uses bp_activity_filter_kses()
     119 * @uses bp_core_get_core_userdata()
     120 * @uses wp_specialchars_decode()
     121 * @uses get_blog_option()
     122 * @uses bp_get_root_blog_id()
     123 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_to' hook
     124 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_subject' hook
     125 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_message' hook
     126 * @uses wp_mail()
     127 * @uses do_action() To call the 'bp_activity_sent_reply_to_update_email' hook
     128 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_to' hook
     129 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_subject' hook
     130 * @uses apply_filters() To call the 'bp_activity_new_comment_notification_comment_author_message' hook
     131 * @uses do_action() To call the 'bp_activity_sent_reply_to_reply_email' hook
     132 */
    75133function bp_activity_new_comment_notification( $comment_id, $commenter_id, $params ) {
    76134    global $bp;
Note: See TracChangeset for help on using the changeset viewer.