Changeset 9906 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 06/02/2015 05:21:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r9819 r9906 36 36 * support and pass through the groups_get_group filter. 37 37 * 38 * @param array $args {38 * @param array|string $args { 39 39 * Array of al arguments. 40 40 * @type int $group_id ID of the group. … … 74 74 * @since BuddyPress (1.0.0) 75 75 * 76 * @param array $args {76 * @param array|string $args { 77 77 * An array of arguments. 78 78 * @type int|bool $group_id Pass a group ID to update an existing item, or … … 258 258 * @param bool $enable_forum Whether to enable a forum for the group. 259 259 * @param string $status Group status. 'public', 'private', 'hidden'. 260 * @param string $invite_status Optional. Who is allowed to send invitations260 * @param string|bool $invite_status Optional. Who is allowed to send invitations 261 261 * to the group. 'members', 'mods', or 'admins'. 262 262 * @return bool True on success, false on failure. … … 363 363 * 364 364 * @param string $slug Group slug to check. 365 * @return A unique and sanitized slug.365 * @return string $slug A unique and sanitized slug. 366 366 */ 367 367 function groups_check_slug( $slug ) { … … 656 656 * Get a collection of groups, based on the parameters passed. 657 657 * 658 * @param array $args {658 * @param array|string $args { 659 659 * Array of arguments. Supports all arguments of 660 660 * {@link BP_Groups_Group::get()}. Where the default values differ, they … … 735 735 * 736 736 * @param int $user_id ID of the user. 737 * @param int $ limitOptional. Max number of results to return.737 * @param int $pag_num Optional. Max number of results to return. 738 738 * Default: false (no limit). 739 * @param int $pag e Optional. Page offset of results to return.739 * @param int $pag_page Optional. Page offset of results to return. 740 740 * Default: false (no limit). 741 741 * @return array { … … 844 844 * @param int $group_id ID of the group. 845 845 * @param int|null ID of the membership if the user is an admin, otherwise null. 846 * 847 * @return bool 846 848 */ 847 849 function groups_is_user_admin( $user_id, $group_id ) { … … 855 857 * @param int $group_id ID of the group. 856 858 * @param int|null ID of the membership if the user is a mod, otherwise null. 859 * 860 * @return bool 857 861 */ 858 862 function groups_is_user_mod( $user_id, $group_id ) { … … 866 870 * @param int $group_id ID of the group. 867 871 * @param int|null ID of the membership if the user is a member, otherwise null. 872 * 873 * @return bool 868 874 */ 869 875 function groups_is_user_member( $user_id, $group_id ) { … … 895 901 * @todo Should bail out when the Activity component is not active. 896 902 * 897 * @param array {903 * @param array|string $args { 898 904 * Array of arguments. 899 905 * @type string $content The content of the update. … … 982 988 * 983 989 * @param int $user_id ID of the inviting user. 984 * @param int $group_id ID of the group. 990 * @param int|bool $limit Limit to restrict to. 991 * @param int|bool $page 992 * @param string|array|bool $exclude 993 * 985 994 * @return array IDs of users who have been invited to the group by the 986 995 * user but have not yet accepted. … … 1013 1022 * Invite a user to a group. 1014 1023 * 1015 * @param array $args {1024 * @param array|string $args { 1016 1025 * Array of arguments. 1017 1026 * @type int $user_id ID of the user being invited. … … 1627 1636 * 1628 1637 * @param int $group_id ID of the group. 1629 * @param string $meta_key The key of the row to delete.1630 * @param string $meta_value Optional. Metadata value. If specified, only delete1638 * @param string|bool $meta_key The key of the row to delete. 1639 * @param string|bool $meta_value Optional. Metadata value. If specified, only delete 1631 1640 * metadata entries with this value. 1632 1641 * @param bool $delete_all Optional. If true, delete matching metadata entries
Note: See TracChangeset
for help on using the changeset viewer.