PHP Class Inpsyde\MultilingualPress\Asset\AssetLocation

Since: 3.0.0
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( string $file, string $path, string $url ) Constructor. Sets up the properties.
file ( ) : string Returns the relative file name (or path).
path ( ) : string Returns the local path to the directory containing the file.
url ( ) : string Returns the public URL for the directory containing the file.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $file, string $path, string $url )
$file string The relative file name (or path).
$path string The local path to the directory containing the file.
$url string The public URL for the directory containing the file.

file() public method

Returns the relative file name (or path).
Since: 3.0.0
public file ( ) : string
return string The relative file name (or path).

path() public method

Returns the local path to the directory containing the file.
Since: 3.0.0
public path ( ) : string
return string The local path to the directory containing the file.

url() public method

Returns the public URL for the directory containing the file.
Since: 3.0.0
public url ( ) : string
return string The public URL for the directory containing the file.