definition.php 1.7 KB

12345678910111213141516171819202122232425
  1. <?php
  2. $sloodleconfig = new SloodleObjectConfig();
  3. $sloodleconfig->primname = 'Multi User Quiz 2';
  4. $sloodleconfig->module = 'quiz';
  5. $sloodleconfig->module_choice_message = 'selectquiz';// TODO: There's some extra craziness to make sure we only have sloodle stuff
  6. $sloodleconfig->module_no_choices_message = 'noquizzes';
  7. $sloodleconfig->group = 'activity';
  8. $sloodleconfig->collections= array('Avatar Classroom 2.0 Gaming B');
  9. $sloodleconfig->field_sets = array(
  10. 'generalconfiguration' => array( //TODO: Check defaults
  11. 'sloodlerepeat' => new SloodleConfigurationOptionYesNo( 'sloodlerepeat', 'repeatquiz', null, 0 ),
  12. 'sloodlerandomize' => new SloodleConfigurationOptionYesNo( 'sloodlerandomize', 'randomquestionorder', null, 1 ),
  13. 'sloodledialog' => new SloodleConfigurationOptionYesNo( 'sloodledialog', 'usedialogs', null, 1 ),
  14. 'sloodlecorrecttocontinue' => new SloodleConfigurationOptionYesNo( 'sloodlecorrecttocontinue', 'correcttocontinue', null, 0 ),
  15. 'sloodleaskquestionscontinuously' => new SloodleConfigurationOptionYesNo( 'sloodleaskquestionscontinuously', 'askquestionscontinuously', null, 0 ),
  16. 'sloodleplaysound' => new SloodleConfigurationOptionYesNo( 'sloodleplaysound', 'playsounds', null, 0 ),
  17. ),
  18. 'accesslevel' => array(
  19. 'sloodleobjectaccessleveluse' => $sloodleconfig->access_level_object_use_option(),
  20. 'sloodleserveraccesslevel' => $sloodleconfig->access_level_server_option(),
  21. ),
  22. //'awards' => array_merge( $sloodleconfig->awards_require_options(), $sloodleconfig->awards_deposit_options( array( 'answerquestion' => 'awards:answerquestionaward' ) ) )
  23. 'awards' => $sloodleconfig->awards_deposit_options( array( 'answerquestion' => 'awards:answerquestionaward' ) )
  24. );
  25. ?>