Changeset 3917 for trunk/bp-members/bp-members-notifications.php
- Timestamp:
- 01/25/2011 08:58:56 PM (14 years ago)
- Location:
- trunk/bp-members
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-notifications.php
r3916 r3917 1 1 <?php 2 2 3 function bp_ users_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {3 function bp_members_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) { 4 4 global $bp; 5 5 … … 24 24 } 25 25 26 function bp_ users_delete_notification( $id ) {27 if ( !bp_ users_check_notification_access( $bp->loggedin_user->id, $id ) )26 function bp_members_delete_notification( $id ) { 27 if ( !bp_members_check_notification_access( $bp->loggedin_user->id, $id ) ) 28 28 return false; 29 29 … … 31 31 } 32 32 33 function bp_ users_get_notification( $id ) {33 function bp_members_get_notification( $id ) { 34 34 return new BP_Core_Notification( $id ); 35 35 } 36 36 37 function bp_ users_get_notifications_for_user( $user_id ) {37 function bp_members_get_notifications_for_user( $user_id ) { 38 38 global $bp; 39 39 … … 72 72 } 73 73 74 function bp_ users_delete_notifications_by_type( $user_id, $component_name, $component_action ) {74 function bp_members_delete_notifications_by_type( $user_id, $component_name, $component_action ) { 75 75 return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action ); 76 76 } 77 77 78 function bp_ users_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {78 function bp_members_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) { 79 79 return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id ); 80 80 } 81 81 82 function bp_ users_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {82 function bp_members_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) { 83 83 return BP_Core_Notification::delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ); 84 84 } 85 85 86 function bp_ users_delete_notifications_from_user( $user_id, $component_name, $component_action ) {86 function bp_members_delete_notifications_from_user( $user_id, $component_name, $component_action ) { 87 87 return BP_Core_Notification::delete_from_user_by_type( $user_id, $component_name, $component_action ); 88 88 } 89 89 90 function bp_ users_check_notification_access( $user_id, $notification_id ) {90 function bp_members_check_notification_access( $user_id, $notification_id ) { 91 91 if ( !BP_Core_Notification::check_access( $user_id, $notification_id ) ) 92 92 return false;
Note: See TracChangeset
for help on using the changeset viewer.