Changeset 4605 for trunk/bp-members/bp-members-notifications.php
- Timestamp:
- 07/04/2011 05:50:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-notifications.php
r4246 r4605 10 10 */ 11 11 12 function bp_ members_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) {12 function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false ) { 13 13 global $bp; 14 14 … … 33 33 } 34 34 35 function bp_ members_delete_notification( $id ) {36 if ( !bp_ members_check_notification_access( $bp->loggedin_user->id, $id ) )35 function bp_core_delete_notification( $id ) { 36 if ( !bp_core_check_notification_access( $bp->loggedin_user->id, $id ) ) 37 37 return false; 38 38 … … 40 40 } 41 41 42 function bp_ members_get_notification( $id ) {42 function bp_core_get_notification( $id ) { 43 43 return new BP_Core_Notification( $id ); 44 44 } 45 45 46 function bp_ members_get_notifications_for_user( $user_id ) {46 function bp_core_get_notifications_for_user( $user_id ) { 47 47 global $bp; 48 48 … … 81 81 } 82 82 83 function bp_ members_delete_notifications_by_type( $user_id, $component_name, $component_action ) {83 function bp_core_delete_notifications_by_type( $user_id, $component_name, $component_action ) { 84 84 return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action ); 85 85 } 86 86 87 function bp_ members_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {87 function bp_core_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) { 88 88 return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id ); 89 89 } 90 90 91 function bp_ members_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {91 function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) { 92 92 return BP_Core_Notification::delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ); 93 93 } 94 94 95 function bp_ members_delete_notifications_from_user( $user_id, $component_name, $component_action ) {95 function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) { 96 96 return BP_Core_Notification::delete_from_user_by_type( $user_id, $component_name, $component_action ); 97 97 } 98 98 99 function bp_ members_check_notification_access( $user_id, $notification_id ) {99 function bp_core_check_notification_access( $user_id, $notification_id ) { 100 100 if ( !BP_Core_Notification::check_access( $user_id, $notification_id ) ) 101 101 return false;
Note: See TracChangeset
for help on using the changeset viewer.