Changeset 7529 for trunk/bp-notifications/bp-notifications-functions.php
- Timestamp:
- 11/08/2013 05:09:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-functions.php
r7528 r7529 300 300 * 301 301 * @param int $user_id ID of the user whose notifications are being deleted. 302 * @param int $is_new 0 for read, 1 for unread303 * @param string $component_ name Name of the associated component.304 * @param string $component_action Name of the associated action.305 * @return bool True on success, false on failure. 306 */ 307 function bp_notifications_mark_notifications_by_type( $user_id, $ is_new, $component_name, $component_action) {302 * @param string $component_name Name of the associated component. 303 * @param string $component_action Name of the associated action. 304 * @param int $is_new 0 for read, 1 for unread 305 * @return bool True on success, false on failure. 306 */ 307 function bp_notifications_mark_notifications_by_type( $user_id, $component_name, $component_action, $is_new = false ) { 308 308 return BP_Notifications_Notification::delete( array( 309 309 'user_id' => $user_id, … … 324 324 * @param int $user_id ID of the user whose notifications are being deleted. 325 325 * @param int $item_id ID of the associated item. 326 * @param int $is_new 0 for read, 1 for unread327 326 * @param string $component_name Name of the associated component. 328 327 * @param string $component_action Name of the associated action. 329 328 * @param int $secondary_item_id ID of the secondary associated item. 330 * @return bool True on success, false on failure. 331 */ 332 function bp_notifications_mark_notifications_by_item_id( $user_id, $item_id, $is_new, $component_name, $component_action, $secondary_item_id = false ) { 329 * @param int $is_new 0 for read, 1 for unread 330 * @return bool True on success, false on failure. 331 */ 332 function bp_notifications_mark_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false, $is_new = false ) { 333 333 return BP_Notifications_Notification::delete( array( 334 334 'user_id' => $user_id, … … 353 353 * @param string $component_action Optional. Name of the associated action. 354 354 * @param int $secondary_item_id Optional. ID of the secondary associated item. 355 * @return bool True on success, false on failure. 356 */ 357 function bp_notifications_mark_all_notifications_by_type( $item_id, $is_new, $component_name, $component_action = false, $secondary_item_id = false ) { 355 * @param int $is_new 0 for read, 1 for unread 356 * @return bool True on success, false on failure. 357 */ 358 function bp_notifications_mark_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false, $is_new = false ) { 358 359 return BP_Notifications_Notification::delete( array( 359 360 'item_id' => $item_id, … … 380 381 * @param string $component_name Name of the associated component. 381 382 * @param string $component_action Name of the associated action. 382 * @return bool True on success, false on failure. 383 */ 384 function bp_notifications_mark_notifications_from_user( $user_id, $is_new, $component_name, $component_action ) { 383 * @param int $is_new 0 for read, 1 for unread 384 * @return bool True on success, false on failure. 385 */ 386 function bp_notifications_mark_notifications_from_user( $user_id, $component_name, $component_action, $is_new = false ) { 385 387 return BP_Notifications_Notification::delete( array( 386 388 'item_id' => $user_id,
Note: See TracChangeset
for help on using the changeset viewer.