SUI-614: [h5pauthor] Folge-Feature H5P.MultiChoice #108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/sven/SUI-614"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SUI-614 — [h5pauthor] Folge-Feature: H5P.MultiChoice
Follow-up to
q02(SUI-47): new content typemultichoicebuilt onH5P.MultiChoice— one question per package with one or more correct answers (real multiple selection via behaviourtype: auto; single correct → radios, several → check boxes).H5P.QuestionSetstays out of scope per the SUI-614 Abgrenzung.Changes (full vertical slice, mirrors
singlechoice)content_type: registerMULTICHOICE→H5P.MultiChoice1.16 (admin overridemultichoice_version).multichoice_content:build()(validates ≥2 answers + ≥1 correct,type=auto, shuffled) +parse_answer_lines()(every*-marked line is correct).prompts::multichoice+generator::draft_multichoice(one question,{text, correct}answers).authoring_service::create_multichoice+generate()branch.create_multichoice(+db/services.php;generatetype list updated).mc_runtime labels,error_noanswers/error_nocorrect.settings.phpoverride.01/02/03/05,04-tasksq02→answered +task10), CHANGELOG,version.php→0.6.0.Tests / checks
php -lclean on all 16 changed PHP files;git diff --checkclean except the DevFlow docs' pre-existing two-space markdown hard-breaks.content_builder_test(+7),generator_test(+3),h5p_package_builder_test(+1) — pure-function mirrors of the existing green suite.demo-webserver-1): new files produce the identical sniff profile to their already-merged siblings (create_multichoice.php==create_singlechoice.php,multichoice_content.php==singlechoice_content.php) — 0 new violation classes; the flagged items are the plugin's accepted house style under that container's newer moodle-cs build.init.phpaborts duringinstall_cli_databasebecause of pre-existing, unrelated broken plugins (webservice_elediamcphas noversion.php;local_elediaai_tutor_premium/version.phpunreadable). My plugin passes Moodle's own init validation (-->local_elediaai_h5pauthor ++ Success). The consistentelediaai-moodle-1container has no PHPUnit/composer provisioning.Head:
26036156afc080857fa6f7b08c0c3f33f190ecbcRefs SUI-614