Revert "Added function for reading file contents"
This reverts commit e324e298b9
.
h5p-prerequisites-validator
parent
db6f18c984
commit
174d8c0941
|
@ -247,16 +247,6 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Read file content of given file and then return it.
|
|
||||||
*
|
|
||||||
* @param string $file_path
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getContent($file_path) {
|
|
||||||
return file_get_contents($this->path . $file_path);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recursive function for copying directories.
|
* Recursive function for copying directories.
|
||||||
*
|
*
|
||||||
|
|
|
@ -117,12 +117,4 @@ interface H5PFileStorage {
|
||||||
* The hash keys of removed files
|
* The hash keys of removed files
|
||||||
*/
|
*/
|
||||||
public function deleteCachedAssets($keys);
|
public function deleteCachedAssets($keys);
|
||||||
|
|
||||||
/**
|
|
||||||
* Read file content of given file and then return it.
|
|
||||||
*
|
|
||||||
* @param string $file_path
|
|
||||||
* @return string contents
|
|
||||||
*/
|
|
||||||
public function getContent($file_path);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue