aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend/FileBackendStore.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2012-11-06 12:49:40 -0800
committerGerrit Code Review <gerrit@wikimedia.org>2012-11-08 23:01:19 +0000
commit9f95bddda711da1567be0e4ad2781eefba320e1e (patch)
tree40c20d3b288bd87bcd2ef4e7e44683aa5b20f8e2 /includes/filebackend/FileBackendStore.php
parent700e0ee0669fc267c597a12d5a1f30c0454b1d95 (diff)
downloadmediawikicore-9f95bddda711da1567be0e4ad2781eefba320e1e.tar.gz
mediawikicore-9f95bddda711da1567be0e4ad2781eefba320e1e.zip
[FileBackend] Added getFileHttpUrl() function.
* This can speed up certain video file operations for scripts that support specifying source files via URLs and support HTTP Range headers. * Updated unit tests. Change-Id: I60cb95c2e3dd9f7df1f740e9182be7c79af69d6e
Diffstat (limited to 'includes/filebackend/FileBackendStore.php')
-rw-r--r--includes/filebackend/FileBackendStore.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php
index 7e91949e68d5..97e49a5a0925 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -805,6 +805,14 @@ abstract class FileBackendStore extends FileBackend {
abstract protected function doGetLocalCopyMulti( array $params );
/**
+ * @see FileBackend::getFileHttpUrl()
+ * @return string|null
+ */
+ public function getFileHttpUrl( array $params ) {
+ return null; // not supported
+ }
+
+ /**
* @see FileBackend::streamFile()
* @return Status
*/