(bug 35565) Special:Log/patrol doesn't indicate whether patrolling was automatic
[mediawiki.git] / includes / ExternalStoreHttp.php
blob092ff7d800efcdcde5388087ee33710649f4ea58
1 <?php
3 /**
4 * Example class for HTTP accessable external objects.
5 * Only supports reading, not storing.
7 * @ingroup ExternalStorage
8 */
9 class ExternalStoreHttp {
11 /**
12 * Fetch data from given URL
14 * @param $url String: the URL
15 * @return String: the content at $url
17 function fetchFromURL( $url ) {
18 $ret = Http::get( $url );
19 return $ret;
22 /* XXX: may require other methods, for store, delete,
23 * whatever, for initial ext storage