Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Discussion summary class.

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

Defines 1 class

discussion_summary:: (5 methods):
  __construct()
  get_discussion()
  get_first_post_author()
  get_latest_post_author()
  get_first_post()


Class: discussion_summary  - X-Ref

Discussion summary class.

__construct(discussion_entity $discussion,post_entity $firstpost,author_entity $firstpostauthor,author_entity $latestpostauthor)   X-Ref
Constructor.

param: discussion_entity $discussion The discussion being summarised
param: post_entity $firstpost First post in the discussion
param: author_entity $firstpostauthor Author of the first post in the discussion
param: author_entity $latestpostauthor Author of the last post in the discussion

get_discussion()   X-Ref
Get the discussion entity.

return: discussion_entity

get_first_post_author()   X-Ref
Get the author entity for the first post.

return: author_entity

get_latest_post_author()   X-Ref
Get the author entity for the last post.

return: author_entity

get_first_post()   X-Ref
Get the post entity for the first post.

return: post_entity