Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/29/2016 07:08:27 AM (9 years ago)
Author:
tw2113
Message:

Plenty of @since tags for the BP Forums component.

See #6399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/bp-forums-functions.php

    r10417 r10821  
    7777 * Wrapper for {@link bb_get_forum()}.
    7878 *
     79 * @since 1.0.0
     80 *
    7981 * @param int $forum_id ID of the forum being fetched.
    8082 * @return object bbPress forum object.
     
    9193 *
    9294 * Wrapper for {@link bb_new_forum()}.
     95 *
     96 * @since 1.0.0
    9397 *
    9498 * @param array|string $args {
     
    124128 *
    125129 * Wrapper for {@link bb_update_forum(}.
     130 *
     131 * @since 1.2.5
    126132 *
    127133 * @param array|string $args {
     
    159165 * Delete a group forum by the group id.
    160166 *
     167 * @since 1.6.0
     168 *
    161169 * @param int $group_id ID of the group whose forum is to be deleted.
    162170 */
     
    177185/**
    178186 * Fetch a set of forum topics.
     187 *
     188 * @since 1.1.0
    179189 *
    180190 * @param array|string $args {
     
    256266 * Get additional details about a given forum topic.
    257267 *
     268 * @since 1.0.0
     269 *
    258270 * @param int $topic_id ID of the topic for which you're fetching details.
    259271 * @return object Details about the topic.
     
    274286 * Wrapper for {@link bb_get_id_from_slug()}.
    275287 *
     288 * @since 1.1.0
     289 *
    276290 * @param string $topic_slug Slug of the topic.
    277291 * @return int|bool ID of the topic (if found), false on failure.
     
    290304/**
    291305 * Create a new forum topic.
     306 *
     307 * @since 1.0.0
    292308 *
    293309 * @param array|string $args {
     
    374390 * Update a topic's details.
    375391 *
     392 * @since 1.1.0
     393 *
    376394 * @param array|string $args {
    377395 *     Array of arguments.
     
    419437}
    420438
     439/**
     440 * Set a topic as sticky/unsticky.
     441 *
     442 * @since 1.1.0
     443 *
     444 * @param string $args Array of arguments for sticky topic.
     445 * @return bool
     446 */
    421447function bp_forums_sticky_topic( $args = '' ) {
    422448
     
    440466/**
    441467 * Set a topic's open/closed status.
     468 *
     469 * @since 1.1.0
    442470 *
    443471 * @param array|string $args {
     
    470498 * Delete a topic.
    471499 *
     500 * @since 1.1.0
     501 *
    472502 * @param array|string $args {
    473503 *     @type int $topic_id ID of the topic being deleted.
     
    490520/**
    491521 * Get a count of the total topics on the site.
     522 *
     523 * @since 1.2.0
    492524 *
    493525 * @return int $count Total topic count.
     
    593625 * Get a total "Topics Started" count for a given user.
    594626 *
     627 * @since 1.2.0
     628 *
    595629 * @param int    $user_id ID of the user being queried. Falls back on displayed
    596630 *                        user, then loggedin.
     
    694728 * - information about topic users that may have been deleted/spammed
    695729 *
     730 * @since 1.2.0
     731 *
    696732 * @param array $topics Array of topics.
    697733 * @return array $topics Topics with BP details added.
     
    757793 * Get the posts belonging to a topic.
    758794 *
     795 * @since 1.1.0
     796 *
    759797 * @param array|string $args {
    760798 *     @type int    $topic_id ID of the topic for which posts are being fetched.
     
    789827 * Wrapper for {@link bb_get_post()}.
    790828 *
     829 * @since 1.0.0
     830 *
    791831 * @param int $post_id ID of the post being fetched.
    792832 * @return object Post object.
     
    803843 *
    804844 * Wrapper for {@link bb_delete_post()}.
     845 *
     846 * @since 1.1.0
    805847 *
    806848 * @param array|string $args {
     
    825867/**
    826868 * Create a new post.
     869 *
     870 * @since 1.1.0
    827871 *
    828872 * @param array|string $args {
     
    906950 * - BP fullname for each poster
    907951 *
     952 * @since 1.2.0
     953 *
    908954 * @param array $posts List of posts.
    909955 * @return array Posts with BP-data added.
     
    9591005 * Get topic and post counts for a given forum.
    9601006 *
     1007 * @since 1.1.0
     1008 *
    9611009 * @param int $forum_id ID of the forum.
    9621010 * @return object Object with properties $topics (topic count) and $posts
     
    9751023/**
    9761024 * Map WordPress caps onto bbPress users, to ensure that they can post.
     1025 *
     1026 * @since 1.1.0
    9771027 *
    9781028 * @param array $allcaps Array of capabilities.
Note: See TracChangeset for help on using the changeset viewer.