<?php
/**
*
- * @package MediaWiki
*
* Constructor class for data kept in external repositories
*
return false;
$class='ExternalStore'.ucfirst($proto);
- /* Preloaded modules might exist, especially ones serving multiple protocols */
+ /* Any custom modules should be added to $wgAutoLoadClasses for on-demand loading */
if (!class_exists($class)) {
- if (!include_once($class.'.php'))
- return false;
+ return false;
}
$store=new $class();
return $store;
/**
* 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.
+ * 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
*/
function insert( $url, $data ) {
}
}
}
-?>
+