Make it easier to send files to the editor

HFP-822
pull/36/head
thomasmars 2017-03-09 17:36:20 +01:00
parent f247bbdfe8
commit a720d46548
1 changed files with 10 additions and 1 deletions

View File

@ -408,7 +408,7 @@ class H5PDefaultStorage implements \H5PFileStorage {
* *
* @throws Exception Unable to copy the file * @throws Exception Unable to copy the file
*/ */
private static function copyFileTree($source, $destination) { public static function copyFileTree($source, $destination) {
if (!self::dirReady($destination)) { if (!self::dirReady($destination)) {
throw new \Exception('unabletocopy'); throw new \Exception('unabletocopy');
} }
@ -482,4 +482,13 @@ class H5PDefaultStorage implements \H5PFileStorage {
return TRUE; return TRUE;
} }
/**
* Easy helper function for retrieving the editor path
*
* @return null|string Path to editor files
*/
public function getEditorPath() {
return $this->alteditorpath;
}
} }