Issue Details (XML | Word | Printable)

Key: MDL-16486
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Nicolas Connault
Reporter: Penny Leach
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 13/Sep/08 05:44 PM   Updated: 28/Nov/08 01:45 AM
Return to search
Component/s: General
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Nicolas Connault, Penny Leach and Sam Marshall
Security Level: None
Resolved date: 16/Sep/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
as discussed awhile ago on jabber

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Nicolas Connault added a comment - 16/Sep/08 01:50 AM
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


Nicolas Connault added a comment - 16/Sep/08 03:38 PM - 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.


Sam Marshall added a comment - 28/Nov/08 01:45 AM
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...)