definition.php 1.4 KB

1234567891011121314151617181920212223
  1. <?php
  2. $sloodleconfig = new SloodleObjectConfig();
  3. $sloodleconfig->primname = 'Hexagon Rezzer';
  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. 'sloodleplaysound' => new SloodleConfigurationOptionYesNo( 'sloodleplaysound', 'playsounds', null, 0 ),
  14. 'questiontimelimit' => new SloodleConfigurationOptionText( 'questiontimelimit', 'quiz:questiontimelimit', '', '30', 3)
  15. ),
  16. 'accesslevel' => array(
  17. 'sloodleobjectaccessleveluse' => $sloodleconfig->access_level_object_use_option(),
  18. 'sloodleserveraccesslevel' => $sloodleconfig->access_level_server_option(),
  19. ),
  20. //'awards' => array_merge( $sloodleconfig->awards_require_options(), $sloodleconfig->awards_deposit_options( array( 'answerquestion' => 'awards:answerquestionaward' ) ) )
  21. 'awards' => $sloodleconfig->awards_deposit_options( array( 'answerquestion' => 'awards:answerquestionaward' ) )
  22. );
  23. ?>