class Data_AccessData access for forums, topics, replies, follows, moderators.
class final
- Full name
Kernowdev\ClanbiteForums\Forums\Data_Access
Methods
add_moderator()bump_forum_reply_count()bump_forum_topic_count()count_forums_in_category()count_replies_for_statistics()Published replies only (for statistics).count_reply_reactions()Total reactions on one reply.count_topic_reactions()Total reactions on one topic (opening post).count_topics_for_statistics()Topic rows excluding trash (for public statistics).count_total_posts_for_statistics()Opening posts plus replies (classic “total posts” figure).delete_category()Remove an empty category.delete_forum()Permanently remove an empty forum row (and moderator assignments).follow_topic()get_category()get_follower_user_ids()User IDs following a topic (excluding one user).get_forum_by_slug()get_forum()get_moderator_role()get_reply_reaction_counts_by_reply()Counts per reaction_type for one reply.get_reply_reaction_reactor_user_ids_for_replies()Recent reactor user IDs per slug per reply.get_reply_reaction_summaries_for_replies()Batch summaries for replies.get_reply()get_topic_by_slug()get_topic_reaction_counts_by_topic()Counts per reaction_type for one topic.get_topic_reaction_reactor_user_ids_for_topics()Recent reactor user IDs per reaction slug per topic.get_topic_reaction_summaries_for_topics()Batch summaries for topics (counts + viewer slugs + reactor IDs per slug).get_topic()get_user_reply_reaction_slugs()Slugs the viewer has on this reply.get_user_topic_reaction_slugs()Slugs the viewer has on this topic.hide_reply()Soft-hide a reply.insert_reply()insert_topic()Create a topic (opening post stored on topic row).is_following_topic()list_all_replies_for_topic()All published replies for a topic (for building trees / subtrees).list_categories_admin()All categories for wp-admin (any status).list_categories_published()Published categories in display order.list_forums_admin()All forums for wp-admin management (any status).list_forums_in_category()Forums in a category (publish only).list_forums()list_moderated_forum_ids_for_user()Forum IDs assigned to this user in the per-forum moderators table.list_moderators()list_replies_for_topic()list_replies_subtree_for_topic()Reply rows: a branch root and all descendants (BFS order), or full list when root is 0.list_topics_for_forum()map_forum_last_post_snapshots()For each forum ID, load the topic with the latest activity (last_reply_at, tie-break id).remove_moderator()set_topic_closed()Toggle topic closed state.set_topic_pinned()set_topic_reply_visibility()Update who may reply to a topic.table()Full table name.toggle_reply_reaction()Toggle one reaction on a reply.toggle_topic_reaction()Toggle one reaction on a topic.trash_topic()Trash a topic and adjust counts (replies remain in DB but hidden from public lists).unfollow_topic()unique_topic_slug()Unique topic slug within a forum: base, base-2, base-3, …update_reply_content()Update reply body HTML.update_topic_content()Update topic title and opening-post HTML.upsert_category()Create or update a category.upsert_forum()Create or update a forum (site admin).
Defined in inc/Forums/Data_Access.php