UserFrosting API

ResourceInterface

Resource Interface.

Tags
author

Louis Charette

Table of Contents

getUri() Get Resource URI. string
getBasePath() Get the resource base path, aka the path that comes after the `://`. string
getFilename() Extract the resource filename (test.txt -> test). string
getBasename() Extract the trailing name component (test.txt -> test.txt). string
getExtension() Extract the resource extension (test.txt -> txt). string
getLocation() ResourceLocationInterface|null
__toString() Magic function to convert the class into the resource absolute path. string
getAbsolutePath() string
getPath() string
getLocatorBasePath() string
setLocatorBasePath() static
getSeparator() string
setSeparator() static
getStream() ResourceStreamInterface

Methods

getBasePath()

Get the resource base path, aka the path that comes after the `://`.

public getBasePath( ) : string
Return values
string

getFilename()

Extract the resource filename (test.txt -> test).

public getFilename( ) : string
Return values
string

getBasename()

Extract the trailing name component (test.txt -> test.txt).

public getBasename( ) : string
Return values
string

getExtension()

Extract the resource extension (test.txt -> txt).

public getExtension( ) : string
Return values
string

__toString()

Magic function to convert the class into the resource absolute path.

public __toString( ) : string
Return values
string

The resource absolute path

getLocatorBasePath()

public getLocatorBasePath( ) : string
Return values
string

setLocatorBasePath()

public setLocatorBasePath( $locatorBasePath : string ) : static
Parameters
$locatorBasePath : string
Return values
static

setSeparator()

public setSeparator( $separator : string ) : static
Parameters
$separator : string
Return values
static

Search results