MediaWiki  REL1_24
ResourceLoaderFilePath.php
Go to the documentation of this file.
00001 <?php
00028 class ResourceLoaderFilePath {
00029     /* Protected Members */
00030 
00032     protected $localBasePath;
00033 
00035     protected $remoteBasePath;
00036 
00039     protected $path;
00040 
00041     /* Methods */
00042 
00048     public function __construct( $path, $localBasePath, $remoteBasePath ) {
00049         $this->path = $path;
00050         $this->localBasePath = $localBasePath;
00051         $this->remoteBasePath = $remoteBasePath;
00052     }
00053 
00057     public function getLocalPath() {
00058         return "{$this->localBasePath}/{$this->path}";
00059     }
00060 
00064     public function getRemotePath() {
00065         return "{$this->remoteBasePath}/{$this->path}";
00066     }
00067 
00071     public function getPath() {
00072         return $this->path;
00073     }
00074 }