]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14589 improved _pluginfile function - added forcedownload param and fixed docs
authorskodak <skodak>
Fri, 3 Jul 2009 13:39:39 +0000 (13:39 +0000)
committerskodak <skodak>
Fri, 3 Jul 2009 13:39:39 +0000 (13:39 +0000)
mod/glossary/lib.php
mod/scorm/lib.php

index e626c37dc3723a7063a98c362be13309927239ad..e369ec6f9ed2c0a26a1b14f10fb83dc2013bb48d 100644 (file)
@@ -1305,11 +1305,15 @@ function glossary_get_file_areas($course, $cm, $context) {
 /**
  * Serves the glossary attachments. Implements needed access control ;-)
  *
- * @global object
- * @global object
- * @return bool
+ * @param object $course
+ * @param object $cminfo
+ * @param object $context
+ * @param string $filearea
+ * @param array $args
+ * @param bool $forcedownload
+ * @return bool falso if file not found, does not return if found - just send the file
  */
-function glossary_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG, $DB;
 
     if (!$cminfo->uservisible) {
index f1e1792d44be1ff68f479a9ff696be99a8242243..e4c86f9650a74e7382be338fad6023831ce7c741 100755 (executable)
@@ -847,15 +847,15 @@ function scorm_get_file_info($browser, $areas, $course, $cm, $context, $filearea
 /**
  * Serves scorm content, introduction images and packages. Implements needed access control ;-)
  *
- * @global stdClass
  * @param object $course
  * @param object $cminfo
  * @param object $context
  * @param string $filearea
  * @param array $args
- * @return bool
+ * @param bool $forcedownload
+ * @return bool falso if file not found, does not return if found - justsend the file
  */
-function scorm_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function scorm_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG;
 
     if (!$cminfo->uservisible) {