- Timestamp:
- 03/04/2017 06:26:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-functions.php
r11167 r11447 96 96 * 97 97 * @param int $id ID of the notification to delete. 98 * @return boolTrue on success, false on failure.98 * @return false|int True on success, false on failure. 99 99 */ 100 100 function bp_notifications_delete_notification( $id ) { … … 115 115 * @param int $id ID of the notification. 116 116 * @param int|bool $is_new 0 for read, 1 for unread. 117 * @return boolTrue on success, false on failure.117 * @return false|int True on success, false on failure. 118 118 */ 119 119 function bp_notifications_mark_notification( $id, $is_new = false ) { … … 362 362 * @param string $component_name Name of the associated component. 363 363 * @param string $component_action Name of the associated action. 364 * @return boolTrue on success, false on failure.364 * @return int|false True on success, false on failure. 365 365 */ 366 366 function bp_notifications_delete_notifications_by_type( $user_id, $component_name, $component_action ) { … … 385 385 * @param string $component_action Name of the associated action. 386 386 * @param int|bool $secondary_item_id ID of the secondary associated item. 387 * @return boolTrue on success, false on failure.387 * @return int|false True on success, false on failure. 388 388 */ 389 389 function bp_notifications_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) { … … 408 408 * @param string|bool $component_action Optional. Name of the associated action. 409 409 * @param int|bool $secondary_item_id Optional. ID of the secondary associated item. 410 * @return boolTrue on success, false on failure.410 * @return int|false True on success, false on failure. 411 411 */ 412 412 function bp_notifications_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) { … … 433 433 * @param string $component_name Name of the associated component. 434 434 * @param string $component_action Name of the associated action. 435 * @return boolTrue on success, false on failure.435 * @return int|false True on success, false on failure. 436 436 */ 437 437 function bp_notifications_delete_notifications_from_user( $user_id, $component_name, $component_action ) { … … 449 449 * 450 450 * @param int $user_id ID of the user who is about to be deleted. 451 * @return int| boolThe number of rows deleted, or false on error.451 * @return int|false The number of rows deleted, or false on error. 452 452 */ 453 453 function bp_notifications_delete_notifications_on_user_delete( $user_id ) { … … 477 477 * @param string $component_action Name of the associated action. 478 478 * @param int|bool $is_new 0 for read, 1 for unread. 479 * @return boolTrue on success, false on failure.479 * @return int|false True on success, false on failure. 480 480 */ 481 481 function bp_notifications_mark_notifications_by_type( $user_id, $component_name, $component_action, $is_new = false ) { … … 506 506 * @param int|bool $secondary_item_id ID of the secondary associated item. 507 507 * @param int|bool $is_new 0 for read, 1 for unread. 508 * @return boolTrue on success, false on failure.508 * @return int|false True on success, false on failure. 509 509 */ 510 510 function bp_notifications_mark_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false, $is_new = false ) { … … 535 535 * @param int|bool $secondary_item_id Optional. ID of the secondary associated item. 536 536 * @param int|bool $is_new 0 for read, 1 for unread. 537 * @return boolTrue on success, false on failure.537 * @return int|false True on success, false on failure. 538 538 */ 539 539 function bp_notifications_mark_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false, $is_new = false ) { … … 566 566 * @param string $component_action Name of the associated action. 567 567 * @param int|bool $is_new 0 for read, 1 for unread. 568 * @return boolTrue on success, false on failure.568 * @return int|false True on success, false on failure. 569 569 */ 570 570 function bp_notifications_mark_notifications_from_user( $user_id, $component_name, $component_action, $is_new = false ) {
Note: See TracChangeset
for help on using the changeset viewer.