summaryrefslogtreecommitdiff
path: root/includes/ExternalStoreHttp.php
blob: 6eb33b393990ca978d17dfb9a60f44f81599cee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Example class for HTTP accessable external objects
 *
 * @ingroup ExternalStorage
 */
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
	 */
}