MediaWiki REL1_35
ResourceLoaderFilePath.php
Go to the documentation of this file.
1<?php
30 protected $localBasePath;
31
33 protected $remoteBasePath;
34
36 protected $path;
37
43 public function __construct( $path, $localBasePath = '', $remoteBasePath = '' ) {
44 $this->path = $path;
45 $this->localBasePath = $localBasePath;
46 $this->remoteBasePath = $remoteBasePath;
47 }
48
50 public function getLocalPath() {
51 return $this->localBasePath === '' ?
52 $this->path :
53 "{$this->localBasePath}/{$this->path}";
54 }
55
57 public function getRemotePath() {
58 return $this->remoteBasePath === '' ?
59 $this->path :
60 "{$this->remoteBasePath}/{$this->path}";
61 }
62
64 public function getLocalBasePath() {
66 }
67
69 public function getRemoteBasePath() {
71 }
72
74 public function getPath() {
75 return $this->path;
76 }
77}
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.