Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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