diff --git a/repository/local/lib.php b/repository/local/lib.php index 47f17520b759a..6b3e0285f2928 100644 --- a/repository/local/lib.php +++ b/repository/local/lib.php @@ -115,7 +115,7 @@ public function get_listing($encodedpath = '', $page = '') { * @return int */ public function supported_returntypes() { - return FILE_INTERNAL; + return FILE_INTERNAL | FILE_REFERENCE; } /** @@ -126,6 +126,17 @@ public function supported_returntypes() { public function has_moodle_files() { return true; } + + /** + * Return reference file life time + * + * @param string $ref + * @return int + */ + public function get_reference_file_lifetime($ref) { + // this should be realtime + return 0; + } } /**