LocalPath

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

Internal

Table of Contents

Constants

TYPE_ABSOLUTE  = 1
TYPE_RELATIVE  = 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

$relative

protected string|null $relative = null

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

normalized 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

Search results