summaryrefslogtreecommitdiff
path: root/includes/ExternalStoreHttp.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /includes/ExternalStoreHttp.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'includes/ExternalStoreHttp.php')
-rw-r--r--includes/ExternalStoreHttp.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/includes/ExternalStoreHttp.php b/includes/ExternalStoreHttp.php
new file mode 100644
index 00000000..daf62cc4
--- /dev/null
+++ b/includes/ExternalStoreHttp.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ *
+ * @package MediaWiki
+ *
+ * Example class for HTTP accessable external objects
+ *
+ */
+
+class ExternalStoreHttp {
+ /* Fetch data from given URL */
+ function fetchFromURL($url) {
+ ini_set( "allow_url_fopen", true );
+ $ret = file_get_contents( $url );
+ ini_set( "allow_url_fopen", false );
+ return $ret;
+ }
+
+ /* XXX: may require other methods, for store, delete,
+ * whatever, for initial ext storage
+ */
+}
+?>