MediaWiki REL1_34
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() {
71 }
72
76 public function getRemoteBasePath() {
78 }
79
83 public function getPath() {
84 return $this->path;
85 }
86}
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.
string $localBasePath
Local base path.
__construct( $path, $localBasePath, $remoteBasePath)
string $remoteBasePath
Remote base path.