MediaWiki  1.30.0
ResourceLoaderFilePath Class Reference

An object to represent a path to a JavaScript/CSS file, along with a remote and local base path, for use with ResourceLoaderFileModule. More...

Collaboration diagram for ResourceLoaderFilePath:

Public Member Functions

 __construct ( $path, $localBasePath, $remoteBasePath)
 
 getLocalPath ()
 
 getPath ()
 
 getRemotePath ()
 

Protected Attributes

string $localBasePath
 Local base path. More...
 
string $path
 Path to the file. More...
 
string $remoteBasePath
 Remote base path. More...
 

Detailed Description

An object to represent a path to a JavaScript/CSS file, along with a remote and local base path, for use with ResourceLoaderFileModule.

Definition at line 28 of file ResourceLoaderFilePath.php.

Constructor & Destructor Documentation

◆ __construct()

ResourceLoaderFilePath::__construct (   $path,
  $localBasePath,
  $remoteBasePath 
)
Parameters
string$pathPath to the file.
string$localBasePathBase path to prepend when generating a local path.
string$remoteBasePathBase path to prepend when generating a remote path.

Definition at line 48 of file ResourceLoaderFilePath.php.

References $localBasePath, $path, and $remoteBasePath.

Member Function Documentation

◆ getLocalPath()

ResourceLoaderFilePath::getLocalPath ( )
Returns
string

Definition at line 57 of file ResourceLoaderFilePath.php.

◆ getPath()

ResourceLoaderFilePath::getPath ( )
Returns
string

Definition at line 71 of file ResourceLoaderFilePath.php.

References $path.

Referenced by ResourcesTest\provideResourceFiles().

◆ getRemotePath()

ResourceLoaderFilePath::getRemotePath ( )
Returns
string

Definition at line 64 of file ResourceLoaderFilePath.php.

Member Data Documentation

◆ $localBasePath

string ResourceLoaderFilePath::$localBasePath
protected

Local base path.

Definition at line 32 of file ResourceLoaderFilePath.php.

Referenced by __construct().

◆ $path

string ResourceLoaderFilePath::$path
protected

Path to the file.

Definition at line 39 of file ResourceLoaderFilePath.php.

Referenced by __construct(), and getPath().

◆ $remoteBasePath

string ResourceLoaderFilePath::$remoteBasePath
protected

Remote base path.

Definition at line 35 of file ResourceLoaderFilePath.php.

Referenced by __construct().


The documentation for this class was generated from the following file: