Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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