Go to the documentation of this file.
44 return $be->getFileContents(
array(
'src' => $url ) );
58 $pathsByBackend =
array();
59 foreach ( $urls
as $url ) {
62 $pathsByBackend[$be->getName()][] = $url;
66 foreach ( $pathsByBackend
as $backendName => $paths ) {
68 $blobs = $blobs + $be->getFileContentsMulti(
array(
'srcs' => $paths ) );
77 public function store( $backend, $data ) {
85 $wiki = isset( $this->params[
'wiki'] ) ? $this->params[
'wiki'] :
wfWikiID();
87 $url = $be->getContainerStoragePath(
'data' ) .
'/' . rawurlencode( $wiki );
89 ?
"/{$rand[0]}/{$rand[1]}/{$rand[2]}/{$id}"
90 :
"/{$rand[0]}/{$rand[1]}/{$id}";
92 $be->prepare(
array(
'dir' => dirname( $url ),
'noAccess' => 1,
'noListing' => 1 ) );
93 if ( $be->create(
array(
'dst' => $url,
'content' => $data ) )->isOK() ) {
Accessable external objects in a particular storage medium.
static newTimestampedUID128( $base=10)
Get a statistically unique 128-bit unsigned integer ID string.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Base class for all file backend classes (including multi-write backends).
fetchFromURL( $url)
The URL returned is of the form of the form mwstore://backend/container/wiki/id.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
wfWikiID()
Get an ASCII string identifying this wiki This is used as a prefix in memcached keys.
File backend accessable external objects.
batchFetchFromURLs(array $urls)
Fetch data from given external store URLs.
Class for a file system (FS) based file backend.
wfBaseConvert( $input, $sourceBase, $destBase, $pad=1, $lowercase=true, $engine='auto')
Convert an arbitrarily-long digit string from one numeric base to another, optionally zero-padding to...
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as