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.

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