Inherits LocalFile.
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. | |
Definition at line 8 of file Image.php.
| Image::__construct | ( | $ | title | ) |
Definition at line 9 of file Image.php.
References File::$repo, File::$title, RepoGroup::singleton(), and wfDeprecated().
| 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.
| string | $name Name of the image, without the leading "Image:" | |
| boolean | $fromSharedDirectory Should this be in $wgSharedUploadPath? |
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.
| string | $name name of the image, used to create a title object using Title::makeTitleSafe |
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.
Definition at line 20 of file Image.php.
References File::$title, wfDeprecated(), wfFindFile(), and wfLocalFile().
1.5.9