ExternalStore Class Reference
[ExternalStorage]

Constructor class for data kept in external repositories. More...

List of all members.

Static Public Member Functions

static fetchFromURL ($url)
static getStoreObject ($proto)
 Get an external store object of the given type.
static insert ($url, $data)
 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)
 Like insert() above, but does more of the work for us.


Detailed Description

Constructor class for data kept in external repositories.

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.


Member Function Documentation

static ExternalStore::fetchFromURL ( url  )  [static]

Definition at line 17 of file ExternalStore.php.

References $path, $url, $wgExternalStores, and getStoreObject().

Referenced by Revision::getRevisionText().

static ExternalStore::getStoreObject ( proto  )  [static]

Get an external store object of the given type.

Definition at line 37 of file ExternalStore.php.

References $wgExternalStores.

Referenced by fetchFromURL(), insert(), and insertToDefault().

static ExternalStore::insert ( url,
data 
) [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.

Returns the URL of the stored data item, or false on error

Definition at line 60 of file ExternalStore.php.

References $url, and getStoreObject().

static ExternalStore::insertToDefault ( data  )  [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.

Parameters:
string $data Returns the URL of the stored data item, or false on error

Definition at line 78 of file ExternalStore.php.

References $error, $url, $wgDefaultExternalStore, getStoreObject(), wfDebug(), and wfDebugLog().

Referenced by Revision::insertOn().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:37 2009 for MediaWiki by  doxygen 1.5.9