MediaWiki REL1_33
ResourceLoaderFilePath.php
Go to the documentation of this file.
1<?php
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}
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.