Public Member Functions | |
| __construct ($params=array()) | |
Static Public Member Functions | |
| static | fetchFromURL ($url, $params=array()) |
| Fetch data from given URL. | |
| static | getStoreObject ($proto, $params=array()) |
| Get an external store object of the given type, with the given parameters. | |
| static | insert ($url, $data, $params=array()) |
| Store a data item to an external store, identified by a partial URL The protocol part is used to identify the class, the rest is passed to the class itself as a parameter. | |
| static | insertToDefault ($data, $storageParams=array()) |
| Like insert() above, but does more of the work for us. | |
| static | insertToForeignDefault ($data, $wiki) |
| Like insertToDefault, but inserts on another wiki. | |
Public Attributes | |
| $mParams | |
External repositories might be populated by maintenance/async scripts, thus partial moving of data may be possible, as well as possibility to have any storage format (i.e. for archives)
Definition at line 15 of file ExternalStore.php.
| ExternalStore::__construct | ( | $ | params = array() |
) |
Definition at line 18 of file ExternalStore.php.
| static ExternalStore::fetchFromURL | ( | $ | url, | |
| $ | params = array() | |||
| ) | [static] |
Fetch data from given URL.
| $url | String: The URL of the text to get | |
| $params | Array: associative array of parameters for the ExternalStore object. |
Definition at line 29 of file ExternalStore.php.
References $path, $url, $wgExternalStores, and getStoreObject().
Referenced by FixBug20757::execute(), DumpRev::execute(), and Revision::getRevisionText().
| static ExternalStore::getStoreObject | ( | $ | proto, | |
| $ | params = array() | |||
| ) | [static] |
Get an external store object of the given type, with the given parameters.
| $proto | String: type of external storage, should be a value in $wgExternalStores | |
| $params | Array: associative array of parameters for the ExternalStore object. |
Definition at line 53 of file ExternalStore.php.
References $wgExternalStores.
Referenced by DumpRev::execute(), fetchFromURL(), insert(), and insertToDefault().
| static ExternalStore::insert | ( | $ | url, | |
| $ | data, | |||
| $ | params = array() | |||
| ) | [static] |
Store a data item to an external store, identified by a partial URL The protocol part is used to identify the class, the rest is passed to the class itself as a parameter.
Definition at line 76 of file ExternalStore.php.
References $url, and getStoreObject().
| static ExternalStore::insertToDefault | ( | $ | data, | |
| $ | storageParams = array() | |||
| ) | [static] |
Like insert() above, but does more of the work for us.
This function does not need a url param, it builds it by itself. It also fails-over to the next possible clusters.
| $data | String | |
| $storageParams | Array: associative array of parameters for the ExternalStore object. |
Definition at line 95 of file ExternalStore.php.
References $url, $wgDefaultExternalStore, getStoreObject(), wfDebug(), and wfDebugLog().
Referenced by Revision::insertOn(), and insertToForeignDefault().
| static ExternalStore::insertToForeignDefault | ( | $ | data, | |
| $ | wiki | |||
| ) | [static] |
Like insertToDefault, but inserts on another wiki.
Definition at line 133 of file ExternalStore.php.
References insertToDefault().
| ExternalStore::$mParams |
Definition at line 16 of file ExternalStore.php.
1.5.9