Index: trunk/phase3/includes/ExternalStore.php |
— | — | @@ -1,18 +1,15 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * |
5 | | - * |
6 | 4 | * Constructor class for data kept in external repositories |
7 | 5 | * |
8 | 6 | * External repositories might be populated by maintenance/async |
9 | 7 | * scripts, thus partial moving of data may be possible, as well |
10 | 8 | * as possibility to have any storage format (i.e. for archives) |
11 | | - * |
12 | 9 | */ |
13 | 10 | |
14 | 11 | class ExternalStore { |
15 | 12 | /* Fetch data from given URL */ |
16 | | - function fetchFromURL($url) { |
| 13 | + static function fetchFromURL($url) { |
17 | 14 | global $wgExternalStores; |
18 | 15 | |
19 | 16 | if (!$wgExternalStores) |
— | — | @@ -32,7 +29,7 @@ |
33 | 30 | /** |
34 | 31 | * Get an external store object of the given type |
35 | 32 | */ |
36 | | - function &getStoreObject( $proto ) { |
| 33 | + static function &getStoreObject( $proto ) { |
37 | 34 | global $wgExternalStores; |
38 | 35 | if (!$wgExternalStores) |
39 | 36 | return false; |
— | — | @@ -55,7 +52,7 @@ |
56 | 53 | * class itself as a parameter. |
57 | 54 | * Returns the URL of the stored data item, or false on error |
58 | 55 | */ |
59 | | - function insert( $url, $data ) { |
| 56 | + static function insert( $url, $data ) { |
60 | 57 | list( $proto, $params ) = explode( '://', $url, 2 ); |
61 | 58 | $store =& ExternalStore::getStoreObject( $proto ); |
62 | 59 | if ( $store === false ) { |