Moodle

generator should support an array for assignment types to create (not just one or random)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: General
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

as discussed awhile ago on jabber

Activity

Hide
Nicolas Connault added a comment -

Penny had the idea to pass an object instead of an array, to provide the generator with more info. This may not work well with the CLI version though

type: RANDOM, SEQUENCE
options: array(online, upload, single etc...) OR ALL

Show
Nicolas Connault added a comment - Penny had the idea to pass an object instead of an array, to provide the generator with more info. This may not work well with the CLI version though type: RANDOM, SEQUENCE options: array(online, upload, single etc...) OR ALL
Hide
Nicolas Connault added a comment - - edited

You can now pass
1. A single string
2. An array of strings, in which case the RANDOM selection will apply
3. An object with two params
a. type: GENERATOR_RANDOM or GENERATOR_SEQUENCE
b. options: array of strings

The SEQUENCE selection uses the types in the order in which you entered them in the array, and keeps wrapping to the beginning.

Show
Nicolas Connault added a comment - - edited You can now pass 1. A single string 2. An array of strings, in which case the RANDOM selection will apply 3. An object with two params a. type: GENERATOR_RANDOM or GENERATOR_SEQUENCE b. options: array of strings The SEQUENCE selection uses the types in the order in which you entered them in the array, and keeps wrapping to the beginning.
Hide
Sam Marshall added a comment -

Nicolas: Why is simpletestlib.php 210 (truncate_test_tables) commented out? (Not sure why it's to do with this bug but apparently it is according to the commit comment...)

Show
Sam Marshall added a comment - Nicolas: Why is simpletestlib.php 210 (truncate_test_tables) commented out? (Not sure why it's to do with this bug but apparently it is according to the commit comment...)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: