Image Class Reference
[FileRepo]

Backwards compatibility class. More...

Inherits LocalFile.

List of all members.

Public Member Functions

 __construct ($title)

Static Public Member Functions

static newFromTitle ($title, $time=false)
 Wrapper for wfFindFile(), for backwards-compatibility only Do not use in core code.
static newFromName ($name)
 Wrapper for wfFindFile(), for backwards-compatibility only.
static imageUrl ($name, $fromSharedDirectory=false)
 Return the URL of an image, provided its name.


Detailed Description

Backwards compatibility class.

Deprecated:

Definition at line 8 of file Image.php.


Constructor & Destructor Documentation

Image::__construct ( title  ) 

Definition at line 9 of file Image.php.

References File::$repo, File::$title, RepoGroup::singleton(), and wfDeprecated().


Member Function Documentation

static Image::imageUrl ( name,
fromSharedDirectory = false 
) [static]

Return the URL of an image, provided its name.

Backwards-compatibility for extensions. Note that fromSharedDirectory will only use the shared path for files that actually exist there now, and will return local paths otherwise.

Parameters:
string $name Name of the image, without the leading "Image:"
boolean $fromSharedDirectory Should this be in $wgSharedUploadPath?
Returns:
string URL of $name image
Deprecated:

Definition at line 63 of file Image.php.

References $name, wfDeprecated(), wfFindFile(), and wfLocalFile().

static Image::newFromName ( name  )  [static]

Wrapper for wfFindFile(), for backwards-compatibility only.

Do not use in core code.

Parameters:
string $name name of the image, used to create a title object using Title::makeTitleSafe
Returns:
image object or null if invalid title
Deprecated:

Definition at line 37 of file Image.php.

References $name, File::$title, Title::makeTitleSafe(), wfDeprecated(), wfFindFile(), and wfLocalFile().

static Image::newFromTitle ( title,
time = false 
) [static]

Wrapper for wfFindFile(), for backwards-compatibility only Do not use in core code.

Deprecated:

Definition at line 20 of file Image.php.

References File::$title, wfDeprecated(), wfFindFile(), and wfLocalFile().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:38 2009 for MediaWiki by  doxygen 1.5.9