From 96bee2b33467a1ce54f88c77b8a867ef1f7a9a97 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 9 Sep 2012 16:54:35 +0200 Subject: First version of algebra question type initially written by Roger Moore for Moodle 2.3 --- lib.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lib.php (limited to 'lib.php') diff --git a/lib.php b/lib.php new file mode 100644 index 0000000..f14538d --- /dev/null +++ b/lib.php @@ -0,0 +1,38 @@ +. + +/** + * Serve question type files + * + * @since 2.0 + * @package qtype + * @subpackage algebra + * @copyright Dongsheng Cai + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + +defined('MOODLE_INTERNAL') || die(); + + +/** + * Checks file access for algebra questions. + */ +function qtype_algebra_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) { + global $DB, $CFG; + require_once($CFG->libdir . '/questionlib.php'); + question_pluginfile($course, $context, 'qtype_algebra', $filearea, $args, $forcedownload, $options); +} -- cgit v1.2.3