- Timestamp:
- 07/04/2015 10:17:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-functions.php
r9992 r9993 20 20 * @param array $args { 21 21 * Array of arguments describing the notification. All are optional. 22 * @type int $user_idID of the user to associate the notification with.23 * @type int $item_idID of the item to associate the notification with.24 * @type int $secondary_item_id ID of the secondary item to associate the25 * notification with.26 * @type string $component_name Name of the component to associate the27 * notification with.28 * @type string $component_action Name of the action to associate the29 * notification with.30 * @type string $date_notified Timestamp for the notification.22 * @type int $user_id ID of the user to associate the notification with. 23 * @type int $item_id ID of the item to associate the notification with. 24 * @type int $secondary_item_id ID of the secondary item to associate the 25 * notification with. 26 * @type string $component_name Name of the component to associate the 27 * notification with. 28 * @type string $component_action Name of the action to associate the 29 * notification with. 30 * @type string $date_notified Timestamp for the notification. 31 31 * } 32 32 * @return int|bool ID of the newly created notification on success, false … … 84 84 * 85 85 * @param int $id ID of the notification. 86 * 86 87 * @return BP_Notifications_Notification 87 88 */ … … 96 97 * 97 98 * @param int $id ID of the notification to delete. 99 * 98 100 * @return bool True on success, false on failure. 99 101 */ … … 113 115 * @since BuddyPress (1.9.0) 114 116 * 115 * @param int $id ID of the user whose notifications are being deleted. 116 * @param int $is_new 0 for read, 1 for unread. 117 * @param int $id ID of the user whose notifications are being deleted. 118 * @param int|bool $is_new 0 for read, 1 for unread. 119 * 117 120 * @return bool True on success, false on failure. 118 121 */ … … 134 137 * 135 138 * @param int $user_id ID of the user whose notifications are being fetched. 139 * 136 140 * @return array 137 141 */ … … 168 172 * @since BuddyPress (1.9.0) 169 173 * 170 * @param int $user_id ID of the user whose notifications are being fetched. 171 * @param string $format Format of the returned values. 'string' returns HTML, 172 * while 'object' returns a structured object for parsing. 174 * @param int $user_id ID of the user whose notifications are being fetched. 175 * @param string $format Format of the returned values. 'string' returns HTML, 176 * while 'object' returns a structured object for parsing. 177 * 173 178 * @return mixed Object or array on success, false on failure. 174 179 */ … … 313 318 * @since BuddyPress (1.6.0) 314 319 * 315 * @param Array|Bool $renderable Array of notifications to render or false if no notifications.320 * @param array|bool $renderable Array of notifications to render or false if no notifications. 316 321 * @param int $user_id ID of the user whose notifications are being displayed. 317 322 * @param string $format Display format requested for the notifications. … … 330 335 * @since BuddyPress (1.9.0) 331 336 * 332 * @param int $user_idID of the user whose notifications are being deleted.333 * @param string $component_name Name of the associated component.337 * @param int $user_id ID of the user whose notifications are being deleted. 338 * @param string $component_name Name of the associated component. 334 339 * @param string $component_action Name of the associated action. 340 * 335 341 * @return bool True on success, false on failure. 336 342 */ … … 351 357 * @since BuddyPress (1.9.0) 352 358 * 353 * @param int $user_id ID of the user whose notifications are being deleted. 354 * @param int $item_id ID of the associated item. 355 * @param string $component_name Name of the associated component. 356 * @param string $component_action Name of the associated action. 357 * @param int $secondary_item_id ID of the secondary associated item. 359 * @param int $user_id ID of the user whose notifications are being deleted. 360 * @param int $item_id ID of the associated item. 361 * @param string $component_name Name of the associated component. 362 * @param string $component_action Name of the associated action. 363 * @param int|bool $secondary_item_id ID of the secondary associated item. 364 * 358 365 * @return bool True on success, false on failure. 359 366 */ … … 375 382 * @since BuddyPress (1.9.0) 376 383 * 377 * @param int $item_id ID of the user whose notifications are being deleted. 378 * @param string $component_name Name of the associated component. 379 * @param string $component_action Optional. Name of the associated action. 380 * @param int $secondary_item_id Optional. ID of the secondary associated item. 384 * @param int $item_id ID of the user whose notifications are being deleted. 385 * @param string $component_name Name of the associated component. 386 * @param string|bool $component_action Optional. Name of the associated action. 387 * @param int|bool $secondary_item_id Optional. ID of the secondary associated item. 388 * 381 389 * @return bool True on success, false on failure. 382 390 */ … … 401 409 * @since BuddyPress (1.9.0) 402 410 * 403 * @param int $user_idID of the user whose associated items are being deleted.404 * @param string $component_name Name of the associated component.411 * @param int $user_id ID of the user whose associated items are being deleted. 412 * @param string $component_name Name of the associated component. 405 413 * @param string $component_action Name of the associated action. 414 * 406 415 * @return bool True on success, false on failure. 407 416 */ … … 424 433 * @since BuddyPress (1.9.0) 425 434 * 426 * @param int $user_id ID of the user whose notifications are being deleted. 427 * @param string $component_name Name of the associated component. 428 * @param string $component_action Name of the associated action. 429 * @param int $is_new 0 for read, 1 for unread. 435 * @param int $user_id ID of the user whose notifications are being deleted. 436 * @param string $component_name Name of the associated component. 437 * @param string $component_action Name of the associated action. 438 * @param int|bool $is_new 0 for read, 1 for unread. 439 * 430 440 * @return bool True on success, false on failure. 431 441 */ … … 451 461 * @since BuddyPress (1.9.0) 452 462 * 453 * @param int $user_id ID of the user whose notifications are being deleted. 454 * @param int $item_id ID of the associated item. 455 * @param string $component_name Name of the associated component. 456 * @param string $component_action Name of the associated action. 457 * @param int $secondary_item_id ID of the secondary associated item. 458 * @param int $is_new 0 for read, 1 for unread. 463 * @param int $user_id ID of the user whose notifications are being deleted. 464 * @param int $item_id ID of the associated item. 465 * @param string $component_name Name of the associated component. 466 * @param string $component_action Name of the associated action. 467 * @param int|bool $secondary_item_id ID of the secondary associated item. 468 * @param int|bool $is_new 0 for read, 1 for unread. 469 * 459 470 * @return bool True on success, false on failure. 460 471 */ … … 481 492 * @since BuddyPress (1.9.0) 482 493 * 483 * @param int $user_idID of the user whose notifications are being deleted.484 * @param int $is_new 0 for read, 1 for unread485 * @param string $component_name Name of the associated component.486 * @param string $component_action Optional. Name of the associated action.487 * @param int $secondary_item_id Optional. ID of the secondary associated item.488 * @param int $is_new 0 for read, 1 for unread.494 * @param int $item_id ID of the user whose notifications are being deleted. 495 * @param string $component_name Name of the associated component. 496 * @param string|bool $component_action Optional. Name of the associated action. 497 * @param int|bool $secondary_item_id Optional. ID of the secondary associated item. 498 * @param int|bool $is_new 0 for read, 1 for unread. 499 * 489 500 * @return bool True on success, false on failure. 490 501 */ … … 514 525 * @since BuddyPress (1.9.0) 515 526 * 516 * @param int $user_idID of the user whose associated items are being deleted.517 * @param int $is_new 0 for read, 1 for unread518 * @param string $component_name Name of the associated component.519 * @param string $component_action Name of the associated action.520 * @param int $is_new 0 for read, 1 for unread.527 * @param int $user_id ID of the user whose associated items are being deleted. 528 * @param string $component_name Name of the associated component. 529 * @param string $component_action Name of the associated action. 530 * @param int|bool $is_new 0 for read, 1 for unread. 531 * 521 532 * @return bool True on success, false on failure. 522 533 */ … … 543 554 * @since BuddyPress (1.9.0) 544 555 * 545 * @param int $user_id ID of the user being checked.556 * @param int $user_id ID of the user being checked. 546 557 * @param int $notification_id ID of the notification being checked. 558 * 547 559 * @return bool True if the notification belongs to the user, otherwise false. 548 560 */ … … 557 569 * 558 570 * @param int $user_id ID of the user whose unread notifications are being 559 * counted. 571 * counted. 572 * 560 573 * @return int Unread notification count. 561 574 */
Note: See TracChangeset
for help on using the changeset viewer.