Moodle
  1. Moodle
  2. MDL-27591

Function for getting enrolled users with enrolment status

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: DEV backlog
    • Component/s: Enrolments
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      17249

      Description

      For the first time such function would have been needed in the grader report (MDL-26835). It was not implemented in accesslib.php but in grader report. MDL-27322 requests similar functionality to MDL-26835. At this moment I am rewriting attendance module for Moodle 2.0 and I need function that can return enrolled users (user fields + enrolment status) with specified capability ('mod/attforblock:canbelisted') and optionally group.

        Issue Links

          Activity

          Hide
          Adam Olley added a comment -

          Not directly related to your issue, but you mention upgrading the attforblock mod.

          It looks like this has already been done, you can see code for it here:
          https://github.com/netspotau/moodle-mod_attforblock
          and the related block:
          https://github.com/netspotau/moodle-block_attendance

          Show
          Adam Olley added a comment - Not directly related to your issue, but you mention upgrading the attforblock mod. It looks like this has already been done, you can see code for it here: https://github.com/netspotau/moodle-mod_attforblock and the related block: https://github.com/netspotau/moodle-block_attendance
          Hide
          Artem Andreev added a comment -

          Thanks, Admam, I know.

          It is done for attendance 2.1.0, not for 2.3.0 (common and groups sessions, filtering by dates and types, grid view mode, multiple instances per course).
          And it is simplest migration - no new render system support, old (not OOP) code. As well I did some enhancements: enrolment status support, sessions description with WYSIWYG and ability to attach files.

          Show
          Artem Andreev added a comment - Thanks, Admam, I know. It is done for attendance 2.1.0, not for 2.3.0 (common and groups sessions, filtering by dates and types, grid view mode, multiple instances per course). And it is simplest migration - no new render system support, old (not OOP) code. As well I did some enhancements: enrolment status support, sessions description with WYSIWYG and ability to attach files.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: