LocalPath

class \TYPO3\CMS\Core\Resource\LocalPath

Model representing an absolute or relative path in the local file system

Table of Contents

Constants

TYPE_ABSOLUTE  : mixed = 1
TYPE_RELATIVE  : mixed = 2

Properties

$absolute  : string
$raw  : string
$relative  : string|null
$type  : int

Methods

__construct()  : mixed
getAbsolute()  : string
getRaw()  : string
getRelative()  : string|null
isAbsolute()  : bool
isRelative()  : bool

Constants

TYPE_ABSOLUTE

public mixed TYPE_ABSOLUTE = 1

TYPE_RELATIVE

public mixed TYPE_RELATIVE = 2

Properties

Methods

__construct()

public __construct(string $value, int $type) : mixed

Parameters

$value : string
$type : int

getAbsolute()

public getAbsolute() : string

Return values

string —

(calculated) absolute path

getRaw()

public getRaw() : string

Return values

string —

normalize path as provided

getRelative()

public getRelative() : string|null

Return values

string|null —

(calculated) relative path to public path - null if outside public path

isAbsolute()

public isAbsolute() : bool

Return values

bool

isRelative()

public isRelative() : bool

Return values

bool
On this page