Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18592

Allow teacher to make choices for students

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.5, 2.8.2
    • Fix Version/s: None
    • Component/s: Choice
    • Labels:
    • Environment:
      All
    • Database:
      Any
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_28_STABLE

      Description

      I've written code to allow a teacher to assign students who have not responded to a Choice option.

      See discussion: http://moodle.org/mod/forum/discuss.php?d=118914

      Code and screenshots will be posted in the next day or so.

        Gliffy Diagrams

        1. install.txt
          2 kB
          Brian Gray
        2. selectfor.php
          13 kB
          Brian Gray
        3. selectfor.v2.0.php
          13 kB
          Brian Gray
        4. SelectForDemo.pdf
          409 kB
          Brian Gray

          Issue Links

            Activity

            Hide
            bgray Brian Gray added a comment -

            Most of the new code is in file selectfor.php.

            Minor modifications are required to 4 other files. See install.txt.

            The PDF file includes screenshots with notes on functionality.

            Show
            bgray Brian Gray added a comment - Most of the new code is in file selectfor.php. Minor modifications are required to 4 other files. See install.txt. The PDF file includes screenshots with notes on functionality.
            Hide
            bgray Brian Gray added a comment -

            Revised version of selectfor.php

            Eliminates some bad code – I used a call to get_records_sql() that was not needed and would cause problems on non-standard installations.

            Show
            bgray Brian Gray added a comment - Revised version of selectfor.php Eliminates some bad code – I used a call to get_records_sql() that was not needed and would cause problems on non-standard installations.
            Hide
            bgray Brian Gray added a comment -

            selectfor.v2.0.php is the version of the file for Moodle 2.0. It should be renamed to selectfor.php and then installed with the same instructions as for 1.9.4.

            Show
            bgray Brian Gray added a comment - selectfor.v2.0.php is the version of the file for Moodle 2.0. It should be renamed to selectfor.php and then installed with the same instructions as for 1.9.4.
            Hide
            bgray Brian Gray added a comment -

            Updates to eliminate some PHP warnings and other code cleanup.

            If all users have responded (and therefore there are none to select for) the "Save" and "Randomly assign" buttons do not appear.

            files for 1.9.4 and 2.0 have been updated.

            Show
            bgray Brian Gray added a comment - Updates to eliminate some PHP warnings and other code cleanup. If all users have responded (and therefore there are none to select for) the "Save" and "Randomly assign" buttons do not appear. files for 1.9.4 and 2.0 have been updated.
            Hide
            danmarsden Dan Marsden added a comment -

            Unassigning myself from this as I am not planning to work on this and to allow someone else to pick this up.

            Show
            danmarsden Dan Marsden added a comment - Unassigning myself from this as I am not planning to work on this and to allow someone else to pick this up.

              People

              • Votes:
                20 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: