Skip to content

oat-sa/extension-tao-itemqti

This branch is 3 commits ahead of, 931 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

79f25c1 · Nov 23, 2023
Oct 11, 2023
May 3, 2023
May 5, 2023
Jan 20, 2023
May 5, 2023
May 5, 2023
May 5, 2023
Sep 19, 2023
May 3, 2023
Nov 2, 2023
May 5, 2023
Mar 30, 2023
Nov 2, 2023
Nov 23, 2023
Jan 25, 2022
Jul 22, 2014
Jun 30, 2023
May 11, 2023
Jun 5, 2023
Jun 30, 2023
Oct 11, 2023

Repository files navigation

extension-tao-itemqti

codecov

extension to create QTI items for TAO

How to import items

Environment Variables

QTI Identifier Validator Pattern - ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN

QTI Item identifiers by default are normalized strings that accepts everything in the pattern /^[a-zA-Z_]{1}[a-zA-Z0-9_\.-]*$/u. If for some reason you want to change this behavior, it's possible by using the environment variable ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN with a different pattern. Example:

# Do not accept dots on the QTI Item identifier
ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN='/^[a-zA-Z_]{1}[a-zA-Z0-9_-]*$/u'

This would mean that case the user tries to save or import an item with an identifier with dots, this would return an error:

Error Provided by ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN environment variable

After that, please always run taoUpdate to make sure that all the configurations were successfully applied.

cd /path/to/tao/app

php tao/scripts/taoUpdate.php

Feature Flags

Variable Description Default value
FEATURE_FLAG_FLA Toggles certain media-interaction options' availability in item authoring false