MediaWiki
REL1_31
BlobStore.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Storage
;
24
33
interface
BlobStore
{
34
40
const
DESIGNATION_HINT
=
'designation'
;
41
46
const
PAGE_HINT
=
'page_id'
;
47
52
const
ROLE_HINT
=
'role_name'
;
53
58
const
REVISION_HINT
=
'rev_id'
;
59
64
const
PARENT_HINT
=
'rev_parent_id'
;
65
70
const
SHA1_HINT
=
'cont_sha1'
;
71
76
const
MODEL_HINT
=
'cont_model'
;
77
82
const
FORMAT_HINT
=
'cont_format'
;
83
96
public
function
getBlob
( $blobAddress, $queryFlags = 0 );
97
111
public
function
storeBlob
( $data, $hints = [] );
112
118
public
function
isReadOnly
();
119
}
MediaWiki\Storage\BlobStore
Service for loading and storing data blobs.
Definition
BlobStore.php:33
MediaWiki\Storage\BlobStore\isReadOnly
isReadOnly()
Check if the blob metadata or backing blob data store is read-only.
MediaWiki\Storage\BlobStore\getBlob
getBlob( $blobAddress, $queryFlags=0)
Retrieve a blob, given an address.
MediaWiki\Storage\BlobStore\PARENT_HINT
const PARENT_HINT
Hint key for use with storeBlob, indicating the parent revision of the revision the blob is associate...
Definition
BlobStore.php:64
MediaWiki\Storage\BlobStore\DESIGNATION_HINT
const DESIGNATION_HINT
Hint key for use with storeBlob, indicating the general role the block takes in the application.
Definition
BlobStore.php:40
MediaWiki\Storage\BlobStore\PAGE_HINT
const PAGE_HINT
Hint key for use with storeBlob, indicating the page the blob is associated with.
Definition
BlobStore.php:46
MediaWiki\Storage\BlobStore\ROLE_HINT
const ROLE_HINT
Hint key for use with storeBlob, indicating the slot the blob is associated with.
Definition
BlobStore.php:52
MediaWiki\Storage\BlobStore\FORMAT_HINT
const FORMAT_HINT
Hint key for use with storeBlob, indicating the serialization format used to create the blob,...
Definition
BlobStore.php:82
MediaWiki\Storage\BlobStore\REVISION_HINT
const REVISION_HINT
Hint key for use with storeBlob, indicating the revision the blob is associated with.
Definition
BlobStore.php:58
MediaWiki\Storage\BlobStore\SHA1_HINT
const SHA1_HINT
Hint key for use with storeBlob, providing the SHA1 hash of the blob as passed to the method.
Definition
BlobStore.php:70
MediaWiki\Storage\BlobStore\storeBlob
storeBlob( $data, $hints=[])
Stores an arbitrary blob of data and returns an address that can be used with getBlob() to retrieve t...
MediaWiki\Storage\BlobStore\MODEL_HINT
const MODEL_HINT
Hint key for use with storeBlob, indicating the model of the content encoded in the given blob.
Definition
BlobStore.php:76
MediaWiki\Storage
Definition
BlobAccessException.php:23
includes
Storage
BlobStore.php
Generated on Mon Nov 25 2024 15:35:31 for MediaWiki by
1.10.0