Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 403]

(no description)

Copyright: 2014 Andrew Robert Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 514 lines (16 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 48 functions


Functions that are not part of a class:

forum_count_unrated_posts()   X-Ref


forum_tp_count_discussion_read_records()   X-Ref


forum_get_user_discussions()   X-Ref


forum_tp_count_forum_posts()   X-Ref


forum_tp_count_forum_read_records()   X-Ref


forum_get_open_modes()   X-Ref


forum_get_child_posts()   X-Ref


forum_get_discussion_posts()   X-Ref


forum_get_ratings()   X-Ref


forum_get_tracking_link()   X-Ref


forum_tp_count_discussion_unread_posts()   X-Ref


forum_convert_to_roles()   X-Ref


forum_tp_get_read_records()   X-Ref


forum_tp_get_discussion_read_records()   X-Ref


forum_user_enrolled()   X-Ref


forum_user_can_view_post()   X-Ref


forum_shorten_post($message)   X-Ref


forum_is_subscribed()   X-Ref


forum_subscribe()   X-Ref


forum_unsubscribe()   X-Ref


forum_subscribed_users()   X-Ref


forum_is_forcesubscribed($forum)   X-Ref
Determine whether the forum is force subscribed.


forum_forcesubscribe($forumid, $value = 1)   X-Ref


forum_get_forcesubscribed($forum)   X-Ref


forum_get_subscribed_forums()   X-Ref


forum_get_optional_subscribed_forums()   X-Ref


forum_get_potential_subscribers()   X-Ref


forum_make_mail_text()   X-Ref


forum_make_mail_html()   X-Ref


forum_make_mail_post()   X-Ref


forum_cron_minimise_user_record()   X-Ref


forum_cron()   X-Ref


forum_print_discussion()   X-Ref


forum_post_nesting_cache()   X-Ref


forum_should_start_post_nesting()   X-Ref


forum_should_end_post_nesting()   X-Ref


forum_print_post_start()   X-Ref


forum_print_post_end()   X-Ref


forum_print_post()   X-Ref


forum_print_posts_flat()   X-Ref


forum_print_posts_threaded()   X-Ref


forum_print_posts_nested()   X-Ref


forum_print_latest_discussions()   X-Ref


forum_count_replies()   X-Ref


forum_scale_used()   X-Ref


forum_get_user_grades()   X-Ref


forum_get_completion_state($course, $cm, $userid, $type)   X-Ref
Obtains the automatic completion state for this forum based on any conditions
in forum settings.

return: bool True if completed, false if not. (If no conditions, then return
param: object $course Course
param: object $cm Course-module
param: int $userid User ID
param: bool $type Type of comparison (or/and; can be used as return value if no conditions)

forum_update_subscriptions_button($courseid, $forumid)   X-Ref
Prints the editing button on subscribers page

return: string
param: int $courseid
param: int $forumid