]> 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:40:37 +0000 (13:40 +0000)
committerskodak <skodak>
Fri, 3 Jul 2009 13:40:37 +0000 (13:40 +0000)
mod/data/lib.php
mod/forum/lib.php
mod/glossary/lib.php
mod/scorm/lib.php

index fd5608712945fd240213d7312a8015deaec156ed..b787c1dcfc4ca0ba43365ab2c0733f28afd91c73 100755 (executable)
@@ -2821,16 +2821,15 @@ function data_get_file_areas($course, $cm, $context) {
 /**
  * Serves the data attachments. Implements needed access control ;-)
  *
- * @global object
- * @global object
  * @param object $course
  * @param object $cminfo
  * @param object $context
- * @param string filearea
+ * @param string $filearea
  * @param array $args
- * @return bool
+ * @param bool $forcedownload
+ * @return bool false if file not found, does not return if found - justsend the file
  */
-function data_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function data_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG, $DB;
 
     if (!$cminfo->uservisible) {
index 08498674ab5e2c32c67c5e5b4c6df241316d2d3d..0d5ae62a7c222015285a8b9bf8cb95e38a9b3536 100644 (file)
@@ -4365,9 +4365,10 @@ function forum_get_file_areas($course, $cm, $context) {
  * @param object $context
  * @param string $filearea
  * @param array $args
- * @return bool
+ * @param bool $forcedownload
+ * @return bool false if file not found, does not return if found - justsend the file
  */
-function forum_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function forum_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG, $DB;
 
     if (!$cminfo->uservisible) {
index e369ec6f9ed2c0a26a1b14f10fb83dc2013bb48d..a7ce4064d71699f5147ddb7d4edcd1b8461fa472 100644 (file)
@@ -1311,7 +1311,7 @@ function glossary_get_file_areas($course, $cm, $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
+ * @return bool false if file not found, does not return if found - justsend the file
  */
 function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG, $DB;
index e4c86f9650a74e7382be338fad6023831ce7c741..22eb8b1ad32d8785d81d8ce46b5017cf6dc7adb9 100755 (executable)
@@ -853,7 +853,7 @@ function scorm_get_file_info($browser, $areas, $course, $cm, $context, $filearea
  * @param string $filearea
  * @param array $args
  * @param bool $forcedownload
- * @return bool falso if file not found, does not return if found - justsend the file
+ * @return bool false if file not found, does not return if found - just send the file
  */
 function scorm_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
     global $CFG;