MediaWiki
1.34.0
ResourceLoaderFilePath.php
Go to the documentation of this file.
1
<?php
28
class
ResourceLoaderFilePath
{
29
31
protected
$localBasePath
;
32
34
protected
$remoteBasePath
;
35
39
protected
$path
;
40
46
public
function
__construct
(
$path
,
$localBasePath
,
$remoteBasePath
) {
47
$this->path =
$path
;
48
$this->localBasePath =
$localBasePath
;
49
$this->remoteBasePath =
$remoteBasePath
;
50
}
51
55
public
function
getLocalPath
() {
56
return
"{$this->localBasePath}/{$this->path}"
;
57
}
58
62
public
function
getRemotePath
() {
63
return
"{$this->remoteBasePath}/{$this->path}"
;
64
}
65
69
public
function
getLocalBasePath
() {
70
return
$this->localBasePath
;
71
}
72
76
public
function
getRemoteBasePath
() {
77
return
$this->remoteBasePath
;
78
}
79
83
public
function
getPath
() {
84
return
$this->path
;
85
}
86
}
ResourceLoaderFilePath\$remoteBasePath
string $remoteBasePath
Remote base path.
Definition:
ResourceLoaderFilePath.php:34
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:39
ResourceLoaderFilePath\getLocalBasePath
getLocalBasePath()
Definition:
ResourceLoaderFilePath.php:69
ResourceLoaderFilePath\__construct
__construct( $path, $localBasePath, $remoteBasePath)
Definition:
ResourceLoaderFilePath.php:46
ResourceLoaderFilePath\getLocalPath
getLocalPath()
Definition:
ResourceLoaderFilePath.php:55
ResourceLoaderFilePath\getRemotePath
getRemotePath()
Definition:
ResourceLoaderFilePath.php:62
ResourceLoaderFilePath\getRemoteBasePath
getRemoteBasePath()
Definition:
ResourceLoaderFilePath.php:76
ResourceLoaderFilePath\$localBasePath
string $localBasePath
Local base path.
Definition:
ResourceLoaderFilePath.php:31
ResourceLoaderFilePath\getPath
getPath()
Definition:
ResourceLoaderFilePath.php:83
includes
resourceloader
ResourceLoaderFilePath.php
Generated on Thu Dec 19 2019 14:54:45 for MediaWiki by
1.8.16