MediaWiki  master
ResourceLoaderFilePath.php
Go to the documentation of this file.
1 <?php
29 
31  protected $localBasePath;
32 
34  protected $remoteBasePath;
35 
39  protected $path;
40 
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 }
string $localBasePath
Local base path.
string $remoteBasePath
Remote base path.
An object to represent a path to a JavaScript/CSS file, along with a remote and local base path...
string $path
Path to the file.
__construct( $path, $localBasePath, $remoteBasePath)