Go to the documentation of this file.
86 ': not enough parameters, must specify title and repo, or a full path' );
106 $this->dims =
array();
114 if ( !isset( $this->dims[$page] ) ) {
118 $this->dims[$page] = $this->handler->getPageDimensions( $this, $page );
121 return $this->dims[$page];
131 return $dim[
'width'];
141 return $dim[
'height'];
148 if ( !isset( $this->mime ) ) {
149 $magic = MimeMagic::singleton();
172 if ( !isset( $this->metadata ) ) {
174 $this->metadata =
false;
176 $this->metadata = $this->handler->getMetadata( $this, $this->
getLocalRefPath() );
188 return $this->repo->getZoneUrl(
'public' ) .
'/' .
189 $this->repo->getHashPath( $this->
name ) . rawurlencode( $this->
name );
201 return $this->repo->getFileSize( $this->path );
static newFromTitle( $title, $repo)
FileRepo LocalRepo ForeignAPIRepo bool $repo
Some member variables can be lazy-initialised using __get().
static newFromPath( $path, $mime)
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
__construct( $title=false, $repo=false, $path=false, $mime=false)
Create an UnregisteredLocalFile based on a path or a (title,repo) pair.
getRootDirectory()
Get the public zone root storage directory of the repository.
A file object referring to either a standalone local file, or a file in a local repository with no da...
static normalizeTitle( $title, $exception=false)
Given a string or Title object return either a valid Title object with namespace NS_FILE or null.
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Implements some public methods and some protected utility functions which are required by multiple ch...
getLocalRefPath()
Get an FS copy or original of this file and return the path.
setLocalReference(FSFile $fsFile)
Optimize getLocalRefPath() by using an existing local reference.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
bool string $metadata
Handler-specific metadata which will be saved in the img_metadata field *.
processing should stop and the error should be shown to the user * false
getNameFromTitle(Title $title)
Get the name of a file from its title object.
FSFile bool $fsFile
False if undefined *.
Class representing a non-directory file on the file system.
getHashPath( $name)
Get a relative path including trailing slash, e.g.
Represents a title within MediaWiki.
cachePageDimensions( $page=1)
assertRepoDefined()
Assert that $this->repo is set to a valid FileRepo instance.
string $name
The name of a file from its title object *.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at name
getHandler()
Get a MediaHandler instance for this file.
array $dims
Dimension data *.