MediaWiki
REL1_33
ResourceLoaderFilePath.php
Go to the documentation of this file.
1
<?php
28
class
ResourceLoaderFilePath
{
29
31
protected
$localBasePath
;
32
34
protected
$remoteBasePath
;
35
38
protected
$path
;
39
45
public
function
__construct
( $path,
$localBasePath
,
$remoteBasePath
) {
46
$this->path =
$path
;
47
$this->localBasePath =
$localBasePath
;
48
$this->remoteBasePath =
$remoteBasePath
;
49
}
50
54
public
function
getLocalPath
() {
55
return
"{$this->localBasePath}/{$this->path}"
;
56
}
57
61
public
function
getRemotePath
() {
62
return
"{$this->remoteBasePath}/{$this->path}"
;
63
}
64
68
public
function
getPath
() {
69
return
$this->path
;
70
}
71
}
ResourceLoaderFilePath
An object to represent a path to a JavaScript/CSS file, along with a remote and local base path,...
Definition
ResourceLoaderFilePath.php:28
ResourceLoaderFilePath\$path
string $path
Path to the file.
Definition
ResourceLoaderFilePath.php:38
ResourceLoaderFilePath\$localBasePath
string $localBasePath
Local base path.
Definition
ResourceLoaderFilePath.php:31
ResourceLoaderFilePath\getRemotePath
getRemotePath()
Definition
ResourceLoaderFilePath.php:61
ResourceLoaderFilePath\__construct
__construct( $path, $localBasePath, $remoteBasePath)
Definition
ResourceLoaderFilePath.php:45
ResourceLoaderFilePath\$remoteBasePath
string $remoteBasePath
Remote base path.
Definition
ResourceLoaderFilePath.php:34
ResourceLoaderFilePath\getPath
getPath()
Definition
ResourceLoaderFilePath.php:68
ResourceLoaderFilePath\getLocalPath
getLocalPath()
Definition
ResourceLoaderFilePath.php:54
includes
resourceloader
ResourceLoaderFilePath.php
Generated on Mon Nov 25 2024 15:49:52 for MediaWiki by
1.10.0