repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge "Special:Upload should not crash on failing previews"
[mediawiki.git]
/
includes
/
libs
/
rdbms
/
encasing
/
Blob.php
blob
bd903305778932bc7164d8bddfce31090ee4139a
1
<
?php
2
/**
3
* Utility class
4
* @ingroup Database
5
*
6
* This allows us to distinguish a blob from a normal string and an array of strings
7
*/
8
class
Blob
{
9
/** @var string */
10
protected
$mData
;
11
12
function
__construct
(
$data
) {
13
$this
->
mData
=
$data
;
14
}
15
16
function
fetch
() {
17
return
$this
->
mData
;
18
}
19
}