* API: Watchlist feed allows 'hours' parameter of how many hours to go back
[mediawiki.git] / includes / ExternalStoreHttp.php
blobe6656986bce365d8692e78047c56c81a3a27b807
1 <?php
2 /**
5 * Example class for HTTP accessable external objects
7 */
9 class ExternalStoreHttp {
10 /* Fetch data from given URL */
11 function fetchFromURL($url) {
12 ini_set( "allow_url_fopen", true );
13 $ret = file_get_contents( $url );
14 ini_set( "allow_url_fopen", false );
15 return $ret;
18 /* XXX: may require other methods, for store, delete,
19 * whatever, for initial ext storage