From 37f4399ab4b4a1d3ae68390f47e8eb8b5edd3d62 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 7 Mar 2017 10:25:52 +0100 Subject: [PATCH] Added interface function that returns library file URL [HFP-805] --- h5p.classes.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index e2e1bba..90c0333 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -67,7 +67,13 @@ interface H5PFrameworkInterface { */ public function t($message, $replacements = array()); - public function getLibraryFilePath($library_folder, $file); + /** + * Get URL to file in the specific library + * @param string $libraryFolderName + * @param string $fileName + * @return string URL to file + */ + public function getLibraryFileUrl($libraryFolderName, $fileName); /** * Get the Path to the last uploaded h5p