* The provided URL is in the form of DB://cluster/id
* or DB://cluster/id/itemid for concatened storage.
*
+ * @param string $url
+ * @return string|bool False if missing
* @see ExternalStoreMedium::fetchFromURL()
*/
public function fetchFromURL( $url ) {
return $ret;
}
- /**
- * @see ExternalStoreMedium::store()
- */
- public function store( $cluster, $data ) {
- $dbw = $this->getMaster( $cluster );
+ public function store( $location, $data ) {
+ $dbw = $this->getMaster( $location );
$id = $dbw->nextSequenceValue( 'blob_blob_id_seq' );
$dbw->insert( $this->getTable( $dbw ),
[ 'blob_id' => $id, 'blob_text' => $data ],
throw new MWException( __METHOD__ . ': no insert ID' );
}
- return "DB://$cluster/$id";
+ return "DB://$location/$id";
}
/**
* @param string $cluster
* @param string $id
* @param string $itemID
- * @return mixed
+ * @return HistoryBlob|bool Returns false if missing
* @private
*/
function fetchBlob( $cluster, $id, $itemID ) {