Changeset 10454 for trunk/src/bp-groups/classes/class-bp-groups-group.php
- Timestamp:
- 01/18/2016 05:18:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-group.php
r10417 r10454 13 13 /** 14 14 * BuddyPress Group object. 15 * 16 * @since 1.6.0 15 17 */ 16 18 class BP_Groups_Group { … … 19 21 * ID of the group. 20 22 * 23 * @since 1.6.0 21 24 * @var int 22 25 */ … … 26 29 * User ID of the group's creator. 27 30 * 31 * @since 1.6.0 28 32 * @var int 29 33 */ … … 33 37 * Name of the group. 34 38 * 39 * @since 1.6.0 35 40 * @var string 36 41 */ … … 40 45 * Group slug. 41 46 * 47 * @since 1.6.0 42 48 * @var string 43 49 */ … … 47 53 * Group description. 48 54 * 55 * @since 1.6.0 49 56 * @var string 50 57 */ … … 56 63 * Core statuses are 'public', 'private', and 'hidden'. 57 64 * 65 * @since 1.6.0 58 66 * @var string 59 67 */ … … 63 71 * Should (legacy) bbPress forums be enabled for this group? 64 72 * 73 * @since 1.6.0 65 74 * @var int 66 75 */ … … 70 79 * Date the group was created. 71 80 * 81 * @since 1.6.0 72 82 * @var string 73 83 */ … … 77 87 * Data about the group's admins. 78 88 * 89 * @since 1.6.0 79 90 * @var array 80 91 */ … … 84 95 * Data about the group's moderators. 85 96 * 97 * @since 1.6.0 86 98 * @var array 87 99 */ … … 91 103 * Total count of group members. 92 104 * 105 * @since 1.6.0 93 106 * @var int 94 107 */ … … 145 158 /** 146 159 * Constructor method. 160 * 161 * @since 1.6.0 147 162 * 148 163 * @param int|null $id Optional. If the ID of an existing group is provided, … … 168 183 /** 169 184 * Set up data about the current group. 185 * 186 * @since 1.6.0 170 187 */ 171 188 public function populate() { … … 251 268 /** 252 269 * Save the current group to the database. 270 * 271 * @since 1.6.0 253 272 * 254 273 * @return bool True on success, false on failure. … … 366 385 * Delete the current group. 367 386 * 387 * @since 1.6.0 388 * 368 389 * @return bool True on success, false on failure. 369 390 */ … … 410 431 * Get whether a group exists for a given slug. 411 432 * 433 * @since 1.6.0 434 * 412 435 * @param string $slug Slug to check. 413 436 * @param string|bool $table_name Optional. Name of the table to check … … 432 455 * Alias of {@link BP_Groups_Group::group_exists()}. 433 456 * 457 * @since 1.6.0 458 * 434 459 * @param string $slug See {@link BP_Groups_Group::group_exists()}. 435 460 * @return string|null See {@link BP_Groups_Group::group_exists()}. … … 441 466 /** 442 467 * Get IDs of users with outstanding invites to a given group from a specified user. 468 * 469 * @since 1.6.0 443 470 * 444 471 * @param int $user_id ID of the inviting user. … … 457 484 /** 458 485 * Get a list of a user's groups, filtered by a search string. 486 * 487 * @since 1.6.0 459 488 * 460 489 * @param string $filter Search term. Matches against 'name' and … … 504 533 * Get a list of groups, filtered by a search string. 505 534 * 535 * @since 1.6.0 536 * 506 537 * @param string $filter Search term. Matches against 'name' and 507 538 * 'description' fields. … … 548 579 * Check for the existence of a slug. 549 580 * 581 * @since 1.6.0 582 * 550 583 * @param string $slug Slug to check. 551 584 * @return string|null The slug, if found. Otherwise null. … … 562 595 * Get the slug for a given group ID. 563 596 * 597 * @since 1.6.0 598 * 564 599 * @param int $group_id ID of the group. 565 600 * @return string|null The slug, if found. Otherwise null. … … 576 611 * Check whether a given group has any members. 577 612 * 613 * @since 1.6.0 614 * 578 615 * @param int $group_id ID of the group. 579 616 * @return bool True if the group has members, otherwise false. … … 594 631 /** 595 632 * Check whether a group has outstanding membership requests. 633 * 634 * @since 1.6.0 596 635 * 597 636 * @param int $group_id ID of the group. … … 609 648 /** 610 649 * Get outstanding membership requests for a group. 650 * 651 * @since 1.6.0 611 652 * 612 653 * @param int $group_id ID of the group. … … 641 682 * @see WP_Meta_Query::queries for a description of the 'meta_query' 642 683 * parameter format. 684 * 685 * @since 1.6.0 643 686 * 644 687 * @param array $args { … … 1024 1067 * Get a list of groups, sorted by those that have the most legacy forum topics. 1025 1068 * 1069 * @since 1.6.0 1070 * 1026 1071 * @param int|null $limit Optional. The max number of results to return. 1027 1072 * Default: null (no limit). … … 1130 1175 * Get a list of groups, sorted by those that have the most legacy forum posts. 1131 1176 * 1177 * @since 1.6.0 1178 * 1132 1179 * @param int|null $limit Optional. The max number of results to return. 1133 1180 * Default: null (no limit). … … 1197 1244 * Get a list of groups whose names start with a given letter. 1198 1245 * 1246 * @since 1.6.0 1247 * 1199 1248 * @param string $letter The letter. 1200 1249 * @param int|null $limit Optional. The max number of results to return. … … 1263 1312 * 1264 1313 * Use BP_Groups_Group::get() with 'type' = 'random' instead. 1314 * 1315 * @since 1.6.0 1265 1316 * 1266 1317 * @param int|null $limit Optional. The max number of results to return. … … 1336 1387 * is_confirmed, is_pending, is_banned) 1337 1388 * 1389 * @since 1.6.0 1390 * 1338 1391 * @param array $paged_groups Array of groups. 1339 1392 * @param string|array $group_ids Array or comma-separated list of IDs matching … … 1413 1466 * Delete all invitations to a given group. 1414 1467 * 1468 * @since 1.6.0 1469 * 1415 1470 * @param int $group_id ID of the group whose invitations are being deleted. 1416 1471 * @return int|null Number of rows records deleted on success, null on … … 1431 1486 * current_user_can( 'bp_moderate' ). 1432 1487 * 1488 * @since 1.6.0 1489 * 1433 1490 * @return int Group count. 1434 1491 */ … … 1447 1504 /** 1448 1505 * Get global count of forum topics in public groups (legacy forums). 1506 * 1507 * @since 1.6.0 1449 1508 * 1450 1509 * @param string $type Optional. If 'unreplied', count will be limited to … … 1482 1541 * Get the member count for a group. 1483 1542 * 1543 * @since 1.6.0 1544 * 1484 1545 * @param int $group_id Group ID. 1485 1546 * @return int Count of confirmed members for the group.
Note: See TracChangeset
for help on using the changeset viewer.