-
phorum_db_add_forum
-
Create a forum.
-
phorum_db_add_group
-
Add a group. This will merely create the group in the database. For changing settings for the group, the function phorum_db_update_group() has to be used.
-
phorum_db_add_message_edit
-
Add a message-edit item
-
phorum_db_check_connection
-
-
phorum_db_close_connection
-
Close the database connection.
-
phorum_db_close_thread
-
Close a thread for posting.
-
phorum_db_create_tables
-
Create the tables that are needed in the database. This function will only be called at install time. After installation, changes in the database schema will be handled by the database upgrade system.
-
phorum_db_delete_group
-
Delete a group.
-
phorum_db_delete_message
-
Delete a message or a message tree from the database.
-
phorum_db_del_banitem
-
Delete a single ban item from the ban lists.
-
phorum_db_drop_folder
-
Drop a forum folder. If the folder contains child forums or folders, then the parent_id for those will be updated to point to the parent of the folder that is being dropped.
-
phorum_db_drop_forum
-
Drop a forum and all of its messages.
-
phorum_db_file_delete
-
Delete a file.
-
phorum_db_file_get
-
Retrieve a file.
-
phorum_db_file_link
-
Update the message to which a file is linked and/or the link type.
-
phorum_db_file_save
-
Add or updates a file.
-
phorum_db_get_banitem
-
Retrieve a single ban item from the ban lists.
-
phorum_db_get_banlists
-
Retrieve the ban lists for the active forum.
-
phorum_db_get_file_list
-
Retrieve a list of files from the database.
-
phorum_db_get_forums
-
Retrieve a list of forums. The forums which are returned can be filtered through the function parameters. Note that only one parameter is effective at a time.
-
phorum_db_get_groups
-
Retrieve all groups or one specific group.
-
phorum_db_get_group_members
-
Retrieve a list of members for a group or for a list of groups.
-
phorum_db_get_max_messageid
-
Retrieve the maximum message_id in the database.
-
phorum_db_get_message
-
Retrieve message(s) from the messages table by comparing value(s) for a specified field in that table.
-
phorum_db_get_messages
-
Retrieve messages from a specific thread.
-
phorum_db_get_messagetree
-
Build a tree of all child (reply) messages below a message_id.
-
phorum_db_get_message_edits
-
Retrieve a list of message-edits for a message
-
phorum_db_get_message_file_list
-
Retrieve a list of files for a message (a.k.a. attachments).
-
phorum_db_get_message_index
-
Retrieve the index of a message (the offset from the thread starter message) within a thread.
-
phorum_db_get_neighbour_thread
-
Retrieve the closest neighbour thread. What "neighbour" is, depends on the
-
phorum_db_get_recent_messages
-
Retrieve a list of recent messages for all forums for which the user has read permission, for a particular forum, for a list of forums or for a particular thread. Optionally, only top level thread messages can be retrieved.
-
phorum_db_get_thread_list
-
Retrieve a list of visible messages for a given page offset.
-
phorum_db_get_unapproved_list
-
Retrieve a list of messages which have not yet been approved by a moderator.
-
phorum_db_get_user_filesize_total
-
Retrieve the total size for all personal files for a user.
-
phorum_db_get_user_file_list
-
Retrieve a list of personal files for a user.
-
phorum_db_increment_viewcount
-
Increment the viewcount field for a post.
-
phorum_db_list_stale_files
-
Retrieve a list of stale files from the database.
-
phorum_db_load_settings
-
Load the Phorum settings in the $PHORUM array.
-
phorum_db_maxpacketsize
-
This function is used by the sanity checking system in the admin interface to determine how much data can be transferred in one query.
-
phorum_db_metaquery_compile
-
Translates a message searching meta query into a real SQL WHERE statement for this database backend. The meta query can be used to define extended SQL queries, based on a meta description of the search that has to be performed on the database.
-
phorum_db_metaquery_messagesearch
-
Run a search on the messages, using a metaquery. See the documentation for the phorum_db_metaquery_compile() function for more info on the metaquery syntax.
-
phorum_db_mod_banlists
-
Add or modify a single ban list item.
-
phorum_db_move_thread
-
Move a thread to another forum.
-
phorum_db_mysql_connect
-
A wrapper function for connecting to the database.
-
phorum_db_newflag_add_read
-
Mark a message as read for the active Phorum user.
-
phorum_db_newflag_allread
-
Mark all messages for a forum read for the active Phorum user.
-
phorum_db_newflag_check
-
Checks if there are new messages in the forums given in forum_ids
-
phorum_db_newflag_count
-
Gets a count of new messages and threads for the forum ids given
-
phorum_db_newflag_delete
-
Remove newflags for a forum for the active Phorum user.
-
phorum_db_newflag_get_count
-
Retrieve the total number of newflags for a forum for the active Phorum user.
-
phorum_db_newflag_get_flags
-
Retrieve the read messages for a forum for the active Phorum user.
-
phorum_db_newflag_get_unread_count
-
Retrieve the number of new threads and messages for a forum for the active Phorum user.
-
phorum_db_newflag_update_forum
-
Update the forum_id for the newflags. The newsflags are updated by setting their forum_ids to the forum_ids of the referenced message table records.
-
phorum_db_pm_buddy_add
-
Add a buddy for a user.
-
phorum_db_pm_buddy_delete
-
Delete a buddy for a user.
-
phorum_db_pm_buddy_list
-
Retrieve a list of buddies for a user.
-
phorum_db_pm_checknew
-
Check if the user has any new private messages. This is useful in case you only want to know whether the user has new messages or not and when you are not interested in the exact amount of new messages.
-
phorum_db_pm_create_folder
-
Create a new private messages folder for a user.
-
phorum_db_pm_delete
-
Delete a private message from a folder.
-
phorum_db_pm_delete_folder
-
Delete a private message folder for a user. Along with the folder, all contained messages are deleted as well.
-
phorum_db_pm_get
-
Retrieve a private message from the database.
-
phorum_db_pm_getfolders
-
Retrieve a list of private message folders for a user.
-
phorum_db_pm_is_buddy
-
Check if a user is buddy of another user.
-
phorum_db_pm_list
-
Retrieve all private messages for a user in a folder.
-
phorum_db_pm_messagecount
-
Compute the total number of private messages a user has and return both the total number of messages and the number of unread messages.
-
phorum_db_pm_move
-
Move a private message to a different folder.
-
phorum_db_pm_rename_folder
-
Rename a private message folder for a user.
-
phorum_db_pm_send
-
Send a private message.
-
phorum_db_pm_setflag
-
Update a flag for a private message.
-
phorum_db_pm_update_message_info
-
Update the meta information for a message.
-
phorum_db_post_message
-
Store a new message in the database.
-
phorum_db_rebuild_search_data
-
Rebuild the search table data from scratch.
-
phorum_db_rebuild_user_posts
-
Rebuild the user post counts from scratch.
-
phorum_db_reopen_thread
-
(Re)open a thread for posting.
-
phorum_db_run_queries
-
Execute an array of queries.
-
phorum_db_sanitize_mixed
-
This function will sanitize a mixed variable based on a given type for safe use in SQL queries.
-
phorum_db_sanitychecks
-
This function is used by the sanity checking system to let the database layer do sanity checks of its own. This function can be used by every database layer to implement specific checks.
-
phorum_db_search
-
Search the database using the provided search criteria and return an array containing the total count of matches and the visible messages based on the page $offset and $length.
-
phorum_db_sort_groups
-
-
phorum_db_split_thread
-
Split a thread.
-
phorum_db_update_forum
-
Update the settings for one or more forums.
-
phorum_db_update_forum_stats
-
Update the forums stats. This function will update the thread count, message count, sticky message count and last post timestamp for a forum.
-
phorum_db_update_group
-
Update the settings for a group.
-
phorum_db_update_message
-
Update a message in the database.
-
phorum_db_update_settings
-
Store or update Phorum settings.
-
phorum_db_user_add
-
Add a user.
-
phorum_db_user_check_login
-
Check if a user's authentication credentials are correct.
-
phorum_db_user_count
-
Count the total number of users in the Phorum system.
-
phorum_db_user_delete
-
Delete a user completely. Messages that were posted by the user in the
-
phorum_db_user_display_name_updates
-
Run the updates that are needed after changing the display_name for a user.
-
phorum_db_user_get
-
Retrieve one or more users.
-
phorum_db_user_get_all
-
Retrieve all users from the database.
-
phorum_db_user_get_fields
-
Retrieve the data for a couple of user table fields for one or more users.
-
phorum_db_user_get_groups
-
Retrieve a list of group memberships and their statuses for a user.
-
phorum_db_user_get_list
-
Retrieve a list of all users for a given type.
-
phorum_db_user_get_moderators
-
Retrieve a list of moderators for a particular forum.
-
phorum_db_user_get_subscription
-
Retrieve the subscription of a user for a thread.
-
phorum_db_user_get_unapproved
-
Retrieve the users that await signup approval.
-
phorum_db_user_increment_posts
-
Increment the posts counter for a user.
-
phorum_db_user_list_subscribers
-
Retrieve the email addresses of the active users that are subscribed to a forum/thread, grouped by the preferred language for these users.
-
phorum_db_user_list_subscriptions
-
Retrieve a list of threads to which a user is subscribed. The list can be limited to those threads which did receive contributions recently.
-
phorum_db_user_save
-
Update a user.
-
phorum_db_user_save_groups
-
Save the group memberships for a user.
-
phorum_db_user_search
-
Search for users, based on a simple search condition, which can be used to search on any field in the user table.
-
phorum_db_user_search_custom_profile_field
-
Search for users, based on a simple search condition, which can be used to search on custom profile fields.
-
phorum_db_user_subscribe
-
Subscribe a user to a forum or thread.
-
phorum_db_user_unsubscribe
-
Unsubscribe a user from a forum/thread.
-
phorum_db_validate_field
-
Check if a value that will be used as a field name in a SQL query contains only characters that would appear in a field name.