Search moodle.org's
Developer Documentation

See Release Notes

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

Contains class core_group\output\user_groups_editable

Copyright: 2017 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 179 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

user_groups_editable:: (3 methods):
  __construct()
  export_for_template()
  update()


Class: user_groups_editable  - X-Ref

Class to display list of user groups.

__construct($course, $context, $user, $coursegroups, $value)   X-Ref
Constructor.

param: \stdClass $course The current course
param: \context $context The course context
param: \stdClass $user The current user
param: \stdClass[] $coursegroups The list of course groups from groups_get_all_groups with membership.
param: array $value Array of groupids.

export_for_template(\renderer_base $output)   X-Ref
Export this data so it can be used as the context for a mustache template.

param: \renderer_base $output
return: array

update($itemid, $newvalue)   X-Ref
Updates the value in database and returns itself, called from inplace_editable callback

param: int $itemid
param: mixed $newvalue
return: \self