Add support for Number grouping(commafy) based on CLDR number grouping patterns like...
[lhc/web/wiklou.git] / includes / ExternalStoreHttp.php
1 <?php
2
3 /**
4 * Example class for HTTP accessable external objects.
5 * Only supports reading, not storing.
6 *
7 * @ingroup ExternalStorage
8 */
9 class ExternalStoreHttp {
10
11 /**
12 * Fetch data from given URL
13 *
14 * @param $url String: the URL
15 * @return String: the content at $url
16 */
17 function fetchFromURL( $url ) {
18 $ret = Http::get( $url );
19 return $ret;
20 }
21
22 /* XXX: may require other methods, for store, delete,
23 * whatever, for initial ext storage
24 */
25 }