[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/ -> functions.bb-posts.php (summary)

(no description)

File Size: 740 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 26 functions

  bb_check_post_flood()
  bb_get_current_poster()
  bb_get_post()
  bb_is_first()
  bb_get_first_post()
  bb_cache_first_posts()
  bb_cache_posts()
  bb_get_last_post()
  bb_cache_last_posts()
  bb_cache_post_topics()
  bb_get_latest_posts()
  bb_get_latest_forum_posts()
  bb_insert_post()
  bb_new_post()
  bb_update_post()
  bb_update_post_positions()
  bb_delete_post()
  _bb_delete_post()
  bb_topics_replied_on_undelete_post()
  bb_post_author_cache()
  bb_get_recent_user_replies_fields()
  bb_get_recent_user_replies_group_by()
  bb_get_recent_user_replies()
  bb_notify_subscribers()
  bb_subscription_management()
  bb_user_subscribe_checkbox_update()

Functions
Functions that are not part of a class:

bb_check_post_flood()   X-Ref
Check to make sure that a user is not making too many posts in a short amount of time.


bb_get_current_poster()   X-Ref
Get the current, non-logged-in poster data.

return: array The associative array of author, email, and url data.

bb_get_post( $post_id )   X-Ref
No description

bb_is_first( $post_id )   X-Ref
No description

bb_get_first_post( $_topic = false, $author_cache = true )   X-Ref
No description

bb_cache_first_posts( $_topics = false, $author_cache = true )   X-Ref
No description

bb_cache_posts( $query, $post_id_query = false )   X-Ref
No description

bb_get_last_post( $_topic = false, $author_cache = true )   X-Ref
No description

bb_cache_last_posts( $_topics = false, $author_cache = true )   X-Ref
No description

bb_cache_post_topics( $posts )   X-Ref
No description

bb_get_latest_posts( $limit = 0, $page = 1 )   X-Ref
No description

bb_get_latest_forum_posts( $forum_id, $limit = 0, $page = 1 )   X-Ref
No description

bb_insert_post( $args = null )   X-Ref
No description

bb_new_post( $topic_id, $post_text )   X-Ref
No description

bb_update_post( $post_text, $post_id, $topic_id )   X-Ref
No description

bb_update_post_positions( $topic_id )   X-Ref
No description

bb_delete_post( $post_id, $new_status = 0 )   X-Ref
No description

_bb_delete_post( $post_id, $post_status )   X-Ref
No description

bb_topics_replied_on_undelete_post( $post_id )   X-Ref
No description

bb_post_author_cache($posts)   X-Ref
No description

bb_get_recent_user_replies_fields( $fields )   X-Ref
No description

bb_get_recent_user_replies_group_by()   X-Ref
No description

bb_get_recent_user_replies( $user_id )   X-Ref
No description

bb_notify_subscribers( $post_id )   X-Ref
Sends notification emails for new posts.

Gets new post's ID and check if there are subscribed
user to that topic, and if there are, send notifications

param: int $post_id ID of new post
since: 1.1

bb_subscription_management( $topic_id, $new_status, $user_id = '' )   X-Ref
Updates user's subscription status in database.

Gets user's new subscription status for topic and
adds new status to database.

param: int $topic_id ID of topic for subscription
param: string $new_status New subscription status
param: int $user_id Optional. ID of user for subscription
since: 1.1

bb_user_subscribe_checkbox_update( $post_id )   X-Ref
Process subscription checkbox submission.

Get ID of and new subscription status and pass values to
bb_user_subscribe_checkbox_update function

param: int $post_id ID of new/edited post
since: 1.1



Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1